summaryrefslogtreecommitdiff
path: root/test/testc.c
diff options
context:
space:
mode:
authorJ旦rg Frings-F端rst <debian@jff-webhosting.net>2017-04-09 19:36:01 +0200
committerJ旦rg Frings-F端rst <debian@jff-webhosting.net>2017-04-09 19:36:01 +0200
commitf42b61800a1a1b360c5ac915ec1caf34bf1fb86b (patch)
tree89be88e0c37aeaa53e55de643586f9d5d4a3d5d2 /test/testc.c
parentcce716909e5236f1aa2971a4db45a007c7efe416 (diff)
New upstream version 6.2.0upstream/6.2.0
Diffstat (limited to 'test/testc.c')
-rw-r--r--test/testc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/testc.c b/test/testc.c
index 5826011..fbad340 100644
--- a/test/testc.c
+++ b/test/testc.c
@@ -582,6 +582,10 @@ extern int main(int argc, char* argv[])
x2("(?:()|()|()|()|()|())*\\2\\5", "", 0, 0);
x2("(?:()|()|()|(x)|()|())*\\2b\\5", "b", 0, 1);
x2("\\xED\\xF2", "\xed\xf2", 0, 2);
+ x2("[0-9-a]", "-", 0, 1); // PR#44
+ n("[0-9-a]", ":"); // PR#44
+ x3("(\\(((?:[^(]|\\g<1>)*)\\))", "(abc)(abc)", 1, 4, 2); // PR#43
+
x2("", "あ", 0, 0);
x2("あ", "あ", 0, 2);
n("い", "あ");
@@ -856,6 +860,8 @@ extern int main(int argc, char* argv[])
n("[^[^a-zあいう]&&[^bcdefgうえお]g-w]", "2");
x2("a<b>バージョンのダウンロード<\\/b>", "a<b>バージョンのダウンロード</b>", 0, 32);
x2(".<b>バージョンのダウンロード<\\/b>", "a<b>バージョンのダウンロード</b>", 0, 32);
+ x2("\\n?\\z", "こんにちは", 10, 10);
+
#ifndef POSIX_TEST
x2("\\p{Hiragana}", "ぴ", 0, 2);
n("\\P{Hiragana}", "ぴ");