Skip to content

Commit

Permalink
add some test cases for Java and Python
Browse files Browse the repository at this point in the history
  • Loading branch information
kkos committed Jun 10, 2024
1 parent f440735 commit 00ad92b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_syntax.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ extern int main(int argc, char* argv[])
test_prec_read();
test_look_behind();
test_char_class();

n("[[:digit:]]", "1");
x2("[[:digit:]]", "g", 0, 1);
x2("(?<=ab|(.))\\1", "abb", 2, 3);
n("(?<!ab|b)c", "bbc");
n("(?<!b|ab)c", "bbc");
Expand All @@ -351,6 +354,9 @@ extern int main(int argc, char* argv[])
test_python_option_ascii();
test_python_z();
test_python_single_multi();

n("[[:digit:]]", "1");
x2("[[:digit:]]", "g]", 0, 2);
x2("(?P<name>abc)", "abc", 0, 3);
x2("(?P<name>abc)(?P=name)", "abcabc", 0, 6);
x2("(?P<name>abc){0}(?P>name)", "abc", 0, 3);
Expand Down

0 comments on commit 00ad92b

Please sign in to comment.