]> granicus.if.org Git - onig/commitdiff
follow spec. change
authorK.Kosako <kosako@sofnec.co.jp>
Thu, 8 Mar 2018 01:32:37 +0000 (10:32 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Thu, 8 Mar 2018 01:32:37 +0000 (10:32 +0900)
sample/callout.c

index 92f7ed2d58eb71b724cd1cadf6abc308b9ae34a3..c9679bdbc8eb97836ebba00cfac5ae6c93c137c2 100644 (file)
@@ -230,11 +230,11 @@ extern int main(int argc, char* argv[])
   (void)onig_set_retraction_callout_of_contents(retraction_callout_func);
 
   // callout of contents
-  test(enc, "a+(?{foo bar baz...}+)$", "aaab");
+  test(enc, "a+(?{foo bar baz...}X)$", "aaab");
   test(enc, "(?{{!{}#$%&'()=-~^|[_]`@*:+;<>?/.\\,}}[symbols])c", "abc");
-  test(enc, "\\A(...)(?{{{booooooooooooo{{ooo}}ooooooooooz}}}-)", "aaab");
-  test(enc, "\\A(?!a(?{prec-read-not}[xxx]+)b)", "ac");
-  test(enc, "(?<!a(?{look-behind-not}+)c)c", "abc");
+  test(enc, "\\A(...)(?{{{booooooooooooo{{ooo}}ooooooooooz}}}<)", "aaab");
+  test(enc, "\\A(?!a(?{in prec-read-not}[xxx]X)b)", "ac");
+  test(enc, "(?<!a(?{in look-behind-not}X)c)c", "abc");
 
 
   // callout of name