From 5e08cd66a190ad5ff5c91bafd276b038b150ab10 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Fri, 7 Jul 2017 14:53:19 +0900 Subject: [PATCH] small changes for test pattern --- test/testc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.40.0