]> granicus.if.org Git - onig/commitdiff
add a test case
authorK.Kosako <kosako@sofnec.co.jp>
Tue, 29 Aug 2017 04:48:00 +0000 (13:48 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Tue, 29 Aug 2017 04:48:00 +0000 (13:48 +0900)
test/test_utf8.c

index 7d0a856a902ceb32afb5c5359c8992e98bec7478..b6e01e7f9034a64288d3bb7ef231ceb815688732 100644 (file)
@@ -1049,6 +1049,7 @@ extern int main(int argc, char* argv[])
 
 
   e("(?<abc>\\g<abc>)", "zzzz", ONIGERR_NEVER_ENDING_RECURSION);
+  e("(?<=(?>abc))", "abc", ONIGERR_INVALID_LOOK_BEHIND_PATTERN);
 
   fprintf(stdout,
        "\nRESULT   SUCC: %d,  FAIL: %d,  ERROR: %d      (by Oniguruma %s)\n",