test: slre: add more test cases
authorRasmus Villemoes <ravi@prevas.dk>
Tue, 13 May 2025 08:40:27 +0000 (10:40 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 29 May 2025 14:25:18 +0000 (08:25 -0600)
commit09b48305d3b6492553982df75e3a9f99d1f856d0
tree11228624f50221b90e76126d0d2f5e2ac7019297
parent19b3e24083eb0b1b5299e689d0bc5f1a6c4ebdcd
test: slre: add more test cases

Add some tests for the "drop wrong anchored optimization". Without
the previous commit, the first, fifth and seventh of these would fail,
i.e. those:

{ "xby", "^a|b", 1},
{ "", "x*$", 1},
{ "yy", "x*$", 1},

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
test/lib/slre.c