]> granicus.if.org Git - onig/commitdiff
add test cases
authorK.Kosako <kkosako0@gmail.com>
Sat, 29 Jul 2017 12:13:26 +0000 (21:13 +0900)
committerK.Kosako <kkosako0@gmail.com>
Sat, 29 Jul 2017 12:13:26 +0000 (21:13 +0900)
test/testc.c

index 5d2c7d474ffb2da5f5a83397e339bd0f09e0c202..a99b92154cdd25013357ac3057d6bac03db13e3a 100644 (file)
@@ -666,6 +666,9 @@ extern int main(int argc, char* argv[])
   x2("(?~|abc)a*z|aaaaaabc", "aaaaaabc", 0, 8);
   x2("(?~|aaaaaa)a*", "aaaaaa", 0, 0);
 
+  x2("(?~|abc)aaaa|aaaabc", "aaaabc", 0, 6);
+  x2("(?>(?~|abc))aaaa|aaaabc", "aaaabc", 0, 6);
+
   /*
     < ifndef IGNORE_EUC_JP >
     for testcases print warnings #63