]> granicus.if.org Git - onig/commitdiff
add a test case into sample/count.c
authorK.Kosako <kosako@sofnec.co.jp>
Tue, 27 Feb 2018 08:31:50 +0000 (17:31 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Tue, 27 Feb 2018 08:31:50 +0000 (17:31 +0900)
sample/count.c

index e8b8c54b9128b6bd1b6c932fa6ddc480ee6a9b38..d43ff46706b9ab02382d171b03c819c2d0dbf9a6 100644 (file)
@@ -106,6 +106,7 @@ extern int main(int argc, char* argv[])
   test(encs[0], mp, "abc(.(*COUNT[x]))*(*FAIL)", "abcdefg");
   test(encs[0], mp, "abc(.(*COUNT[_any_]))*(.(*COUNT[x]))*d", "abcdefg");
   test(encs[0], mp, "abc(.(*FAIL_COUNT[x]))*f", "abcdefg");
+  test(encs[0], mp, "a(.(*COUNT[x]))*z", "abcd\nabcdz");
 
   test(encs[1], mp, "\000a\000b\000c\000(\000.\000(\000*\000C\000O\000U\000N\000T\000[\000x\000]\000)\000)\000*\000(\000*\000F\000A\000I\000L\000)\000\000", "\000a\000b\000c\000d\000e\000f\000g\000\000");