diff options
-rw-r--r-- | test/lib/slre.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lib/slre.c b/test/lib/slre.c index 51a50b269aa..b76d33475dd 100644 --- a/test/lib/slre.c +++ b/test/lib/slre.c @@ -15,6 +15,14 @@ static const struct re_test re_test[] = { { "x23", "^\\d+$", 0}, { "banana", "^([bn]a)*$", 1}, { "panama", "^([bn]a)*$", 0}, + { "xby", "^a|b", 1}, + { "xby", "b|^a", 1}, + { "xby", "b|c$", 1}, + { "xby", "c$|b", 1}, + { "", "x*$", 1}, + { "", "^x*$", 1}, + { "yy", "x*$", 1}, + { "yy", "^x*$", 0}, {} }; |