mirror of
https://github.com/cesanta/slre.git
synced 2025-03-12 16:55:30 +00:00
Added 5 failing tests
This commit is contained in:
parent
acd861b945
commit
25d9ce82ca
6
slre.c
6
slre.c
@ -593,6 +593,12 @@ int main(void) {
|
||||
ASSERT(slre_match("^.*c.?$", "abc", 3, NULL, 0, &msg) == 3);
|
||||
ASSERT(slre_match("(?i)^.*C.?$", "abc", 3, NULL, 0, &msg) == 3);
|
||||
ASSERT(slre_match("bk?", "ab", 2, NULL, 0, &msg) == 2);
|
||||
ASSERT(slre_match("b(k?)", "ab", 2, NULL, 0, &msg) == 2);
|
||||
ASSERT(slre_match("b[k-z]*", "ab", 2, NULL, 0, &msg) == 2);
|
||||
ASSERT(slre_match("ab(k|z|y)*", "ab", 2, NULL, 0, &msg) == 2);
|
||||
ASSERT(slre_match("[b-z].*", "ab", 2, NULL, 0, &msg) == 2);
|
||||
ASSERT(slre_match("(b|z|u).*", "ab", 2, NULL, 0, &msg) == 2);
|
||||
ASSERT(slre_match("ab(k|z|y)?", "ab", 2, NULL, 0, &msg) == 2);
|
||||
|
||||
{
|
||||
/* Example: HTTP request */
|
||||
|
Loading…
Reference in New Issue
Block a user