From: K.Kosako Date: Fri, 7 Jul 2017 05:53:19 +0000 (+0900) Subject: small changes for test pattern X-Git-Tag: v6.5.0^2~138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e08cd66a190ad5ff5c91bafd276b038b150ab10;p=onig small changes for test pattern --- diff --git a/test/testc.c b/test/testc.c index 0c5f3ed..0cb27e6 100644 --- a/test/testc.c +++ b/test/testc.c @@ -594,8 +594,8 @@ extern int main(int argc, char* argv[]) x2("(a*)(?(-1))aa", "aaaaa", 0, 5); x2("(?aaa)(?('name'))aa", "aaaaa", 0, 5); x2("(a)(?(1)aa|bb)a", "aaaaa", 0, 4); - x2("(?:aa|())(?(1)aa|bb)a", "aabba", 0, 5); - x2("(?:aa|())(?(1)aa|bb|cc)a", "aacca", 0, 5); + x2("(?:aa|())(?(<1>)aa|bb)a", "aabba", 0, 5); + x2("(?:aa|())(?('1')aa|bb|cc)a", "aacca", 0, 5); x3("(a*)(?(1)aa|a)b", "aaab", 0, 1, 1); n("(a)(?(1)a|b)c", "abc"); x2("(a)(?(1)|)c", "ac", 0, 2);