[PATCH 06/11] test: slre: add some (negative) character class tests

Rasmus Villemoes ravi at prevas.dk
Tue May 6 16:10:30 CEST 2025


Signed-off-by: Rasmus Villemoes <ravi at prevas.dk>
---
 test/lib/slre.c | 3 +++
 1 file changed, 3 insertions(+)

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 },
 	{}
 };
 
-- 
2.49.0



More information about the U-Boot mailing list