From 6d012efee7bba148fba1904ef5f80b221e781aca Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Fri, 23 Jun 2017 14:49:30 +0900 Subject: [PATCH] add test cases for relative backref and call by positive number --- test/testc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/testc.c b/test/testc.c index ddf9fd5..5e5a7b4 100644 --- a/test/testc.c +++ b/test/testc.c @@ -586,6 +586,8 @@ extern int main(int argc, char* argv[]) n("[0-9-a]", ":"); // PR#44 x3("(\\(((?:[^(]|\\g<1>)*)\\))", "(abc)(abc)", 1, 4, 2); // PR#43 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("", "¤¢", 0, 0); x2("¤¢", "¤¢", 0, 2); -- 2.40.0