diff options
Diffstat (limited to 'test/testc.c')
-rw-r--r-- | test/testc.c | 6 |
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}", "ぴ"); |