mirror of
https://github.com/cesanta/slre.git
synced 2024-11-24 03:15:30 +00:00
Added failing test
This commit is contained in:
parent
ca79a93d07
commit
ea7e240a63
1
slre.c
1
slre.c
@ -580,6 +580,7 @@ int main(void) {
|
||||
SLRE_CAPS_ARRAY_TOO_SMALL);
|
||||
ASSERT(slre_match("(.+/\\d+\\.\\d+)\\.jpg$", "/foo/bar/12.34.jpg", 18,
|
||||
caps, 1) == 18);
|
||||
ASSERT(slre_match("(ab|cd).*\\.(xx|yy)", "ab.yy", 5, NULL, 0) == 5);
|
||||
|
||||
/* Greedy vs non-greedy */
|
||||
ASSERT(slre_match(".+c", "abcabc", 6, NULL, 0) == 6);
|
||||
|
Loading…
Reference in New Issue
Block a user