From: Rasmus Villemoes Date: Tue, 13 May 2025 08:40:31 +0000 (+0200) Subject: test: slre: add test cases for escape char in character class X-Git-Tag: v2025.10-rc1~118^2~67^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d08883556b588bc1e6ef392349c51eceb550829;p=thirdparty%2Fu-boot.git test: slre: add test cases for escape char in character class Reviewed-by: Simon Glass Signed-off-by: Rasmus Villemoes --- diff --git a/test/lib/slre.c b/test/lib/slre.c index 9b41ea92f38..053d046075e 100644 --- a/test/lib/slre.c +++ b/test/lib/slre.c @@ -26,6 +26,9 @@ static const struct re_test re_test[] = { { "Gadsby", "^[^eE]*$", 1}, { "Ernest", "^[^eE]*$", 0}, { "6d41f0a39d6", "^[0123456789abcdef]*$", 1 }, + /* DIGIT is 17 */ + { "##\x11%%\x11", "^[#%\\d]*$", 0 }, + { "##23%%45", "^[#%\\d]*$", 1 }, {} };