summaryrefslogtreecommitdiff
path: root/test/test_utf8.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-09-05 22:07:01 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-09-05 22:07:01 +0200
commitbff9867dafed1bf5aa196614ec6cf2c83022c482 (patch)
tree13260e2b0cd22ff5327f9a56be748739ae5754ca /test/test_utf8.c
parenta38d6e8f8417b777925660269969ce2d353808ef (diff)
parentc9b3c26db59d89e320a6eb86d9558051ecba0900 (diff)
Update upstream source from tag 'upstream/6.9.0'
Update to upstream version '6.9.0' with Debian dir 3b2adce63a2dab0d7e0e9124b922c348d239c1ec
Diffstat (limited to 'test/test_utf8.c')
-rw-r--r--test/test_utf8.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_utf8.c b/test/test_utf8.c
index bd3ed16..d5a966b 100644
--- a/test/test_utf8.c
+++ b/test/test_utf8.c
@@ -394,6 +394,10 @@ extern int main(int argc, char* argv[])
x2("a|(?i)c", "C", 0, 1);
x2("(?i)c|a", "C", 0, 1);
x2("(?i)c|a", "A", 0, 1);
+ x2("a(?i)b|c", "aB", 0, 2);
+ x2("a(?i)b|c", "aC", 0, 2);
+ n("a(?i)b|c", "AC");
+ n("a(?:(?i)b)|c", "aC");
x2("(?i:c)|a", "C", 0, 1);
n("(?i:c)|a", "A");
x2("[abc]?", "abc", 0, 1);
@@ -933,6 +937,10 @@ extern int main(int argc, char* argv[])
x2("\\p{Hiragana}", "ぴ", 0, 3);
n("\\P{Hiragana}", "ぴ");
+ x2("\\p{Emoji}", "\xE2\xAD\x90", 0, 3);
+ x2("\\p{^Emoji}", "\xEF\xBC\x93", 0, 3);
+ x2("\\p{Extended_Pictographic}", "\xE2\x9A\xA1", 0, 3);
+ n("\\p{Extended_Pictographic}", "\xE3\x81\x82");
x2("\\p{Word}", "こ", 0, 3);
n("\\p{^Word}", "こ");
@@ -1035,6 +1043,11 @@ extern int main(int argc, char* argv[])
x2(".\\Y.", "\xE0\xA4\xB7\xE0\xA4\xBF", 0, 6);
n(".\\y.", "\xE0\xA4\xB7\xE0\xA4\xBF");
+ // {Extended_Pictographic} Extend* ZWJ x {Extended_Pictographic}
+ x2("..\\Y.", "\xE3\x80\xB0\xE2\x80\x8D\xE2\xAD\x95", 0, 9);
+ x2("...\\Y.", "\xE3\x80\xB0\xCC\x82\xE2\x80\x8D\xE2\xAD\x95", 0, 11);
+ n("...\\Y.", "\xE3\x80\xB0\xCD\xB0\xE2\x80\x8D\xE2\xAD\x95");
+
// CR + LF
n("^\\X\\X$", "\x0d\x0a");
x2("^\\X$", "\x0d\x0a", 0, 2);