summaryrefslogtreecommitdiff
path: root/test
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
commit995dfd20e78ad16cec678df25422ce032650e3aa (patch)
treef4c5abd77f4edce4a752311c7fc5b837fcb07fe2 /test
parent9c10d3a428f2e33d01e1ea66932d272ac731787f (diff)
New upstream version 6.4.0upstream/6.4.0
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());