From: Rasmus Villemoes Date: Tue, 13 May 2025 08:40:28 +0000 (+0200) Subject: test: slre: add some (negative) character class tests X-Git-Tag: v2025.10-rc1~118^2~67^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ebdd78c487f6599f693e53e707606d7295f20f6e;p=thirdparty%2Fu-boot.git test: slre: add some (negative) character class tests Reviewed-by: Simon Glass Signed-off-by: Rasmus Villemoes --- diff --git a/test/lib/slre.c b/test/lib/slre.c index b76d33475dd..9b41ea92f38 100644 --- a/test/lib/slre.c +++ b/test/lib/slre.c @@ -23,6 +23,9 @@ static const struct re_test re_test[] = { { "", "^x*$", 1}, { "yy", "x*$", 1}, { "yy", "^x*$", 0}, + { "Gadsby", "^[^eE]*$", 1}, + { "Ernest", "^[^eE]*$", 0}, + { "6d41f0a39d6", "^[0123456789abcdef]*$", 1 }, {} };