git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d3f91d
)
test: slre: add test cases for escape char in character class
author
Rasmus Villemoes
<ravi@prevas.dk>
Tue, 13 May 2025 08:40:31 +0000
(10:40 +0200)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/test/lib/slre.c
b/test/lib/slre.c
index
9b41ea9
..
053d046
100644
(file)
--- 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 },
{}
};