]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: slre: add some (negative) character class tests
authorRasmus Villemoes <ravi@prevas.dk>
Tue, 13 May 2025 08:40:28 +0000 (10:40 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 29 May 2025 14:25:18 +0000 (08:25 -0600)
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
test/lib/slre.c

index b76d33475dd7cb094b5407271ffb2128ad964a75..9b41ea92f38a2eaccd56ab222d4301ad87327418 100644 (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 },
        {}
 };