diff options
| author | Rasmus Villemoes <[email protected]> | 2025-05-13 10:40:31 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-05-29 08:25:18 -0600 |
| commit | 4d08883556b588bc1e6ef392349c51eceb550829 (patch) | |
| tree | 0ce5afa0d7b5f9ed017567603f97a44aae0d1fd5 /test/lib | |
| parent | 5d3f91d6a82386e94c3178721641608563560871 (diff) | |
test: slre: add test cases for escape char in character class
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Rasmus Villemoes <[email protected]>
Diffstat (limited to 'test/lib')
| -rw-r--r-- | test/lib/slre.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 }, {} }; |
