mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
test: slre: add test cases for escape char in character class
Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
This commit is contained in:
committed by
Tom Rini
parent
5d3f91d6a8
commit
4d08883556
@@ -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 },
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user