summaryrefslogtreecommitdiff
path: root/test/testc.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-07-23 10:18:42 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-07-23 10:18:42 +0200
commit3583c157ab4535e5ccee87e787be33447213461f (patch)
tree88b4ca33e0b887948715dcba6556c35daaec9cdd /test/testc.c
parent7aac082e4e72a80c965825bbc5e8176bc7667e5a (diff)
parent995dfd20e78ad16cec678df25422ce032650e3aa (diff)
Updated version 6.4.0 from 'upstream/6.4.0'
with Debian dir c94f3039d51e97ec5152e0857aee3095c04a8323
Diffstat (limited to 'test/testc.c')
-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());