test: slre: add some (negative) character class tests

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
This commit is contained in:
Rasmus Villemoes
2025-05-29 08:25:18 -06:00
committed by Tom Rini
parent 09b48305d3
commit ebdd78c487
+3
View File
@@ -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 },
{}
};