From: K.Kosako Date: Wed, 28 Jun 2017 02:13:17 +0000 (+0900) Subject: add test cases X-Git-Tag: v6.4.0~1^2~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f6b123d4c35bb7476af1ddeeac18b9de792df71;p=onig add test cases --- diff --git a/test/testc.c b/test/testc.c index 5e5a7b4..6a7d903 100644 --- a/test/testc.c +++ b/test/testc.c @@ -588,6 +588,8 @@ extern int main(int argc, char* argv[]) x2("\\o{101}", "A", 0, 1); x2("(?:\\k'+1'B|(A)C)*", "ACAB", 0, 4); // relative backref by postitive number x2("\\g<+2>(abc)(ABC){0}", "ABCabc", 0, 6); // relative call by positive number + x2("A\\g'0'|B()", "AAAAB", 0, 5); + x3("(A\\g'0')|B", "AAAAB", 0, 5, 1); x2("", "¤¢", 0, 0); x2("¤¢", "¤¢", 0, 2);