]> granicus.if.org Git - onig/commitdiff
add a test case into sample/callout.c
authorK.Kosako <kosako@sofnec.co.jp>
Thu, 22 Mar 2018 01:52:12 +0000 (10:52 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Thu, 22 Mar 2018 01:52:12 +0000 (10:52 +0900)
sample/callout.c

index ab89543d3f244aa82e0df00a65aa435e0c083f85..689311016710beee9cfd9e51c6b61fac92fc604d 100644 (file)
@@ -241,6 +241,7 @@ extern int main(int argc, char* argv[])
   test(enc, "(?:(*MAX{3})a|(*MAX{4})b)*", "bbbaabbab");
   test(enc, "(?:(*MAX[A]{3})a|(*MAX[B]{5})b)*(*CMP{A,<,B})", "abababc");
   test(enc, "(?:(*MAX[A]{7})a|(*MAX[B]{5})b)*(*CMP{A,>=,4})", "abababcabababaa");
+  test(enc, "(?:(*MAX[T]{3})a)*(?:(*MAX{T})c)*", "aaccc");
 
   /* callouts in condition */
   test(enc, "\\A(?(?{in condition})then|else)\\z", "then");