summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-08-06 18:59:34 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-08-06 18:59:34 +0200
commitb6c6e4122f35fbead1e9661dfb2d852b39faf8ff (patch)
treed2db75e3fc74d58d53631548ee15e72a8982ed3e /test
parent66e0fdd5369bd804e9147e32a1a043559f2b5e9d (diff)
parent44e90d27319a71ba74d11790de06e7c9d7db189f (diff)
Merge branch 'release/6.4.0-1'6.4.0-1
Diffstat (limited to 'test')
-rw-r--r--test/testc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/testc.c b/test/testc.c
index ddf9fd5..725e375 100644
--- a/test/testc.c
+++ b/test/testc.c
@@ -586,7 +586,17 @@ 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("A\\g'0'|B()", "AAAAB", 0, 5);
+ x3("(A\\g'0')|B", "AAAAB", 0, 5, 1);
+ /*
+ < ifndef IGNORE_EUC_JP >
+ for testcases print warnings #63
+ warning: illegal character encoding in string literal [-Winvalid-source-encoding]
+ */
+#ifndef IGNORE_EUC_JP
x2("", "¤¢", 0, 0);
x2("¤¢", "¤¢", 0, 2);
n("¤¤", "¤¢");
@@ -868,6 +878,8 @@ extern int main(int argc, char* argv[])
n("\\P{Hiragana}", "¤Ô");
#endif
+#endif /* IGNORE_EUC_JP */
+
fprintf(stdout,
"\nRESULT SUCC: %d, FAIL: %d, ERROR: %d (by Oniguruma %s)\n",
nsucc, nfail, nerror, onig_version());