aboutsummaryrefslogtreecommitdiff
path: root/test/test_utf8.c
diff options
context:
space:
mode:
authorK.Kosako <kosako@sofnec.co.jp>2019-12-18 16:26:45 +0900
committerK.Kosako <kosako@sofnec.co.jp>2019-12-18 16:26:45 +0900
commit2aa4e5958740785394d5d2ed7ac138150741d871 (patch)
tree91fc315ca9be08a42de0224b79a1452fd856194f /test/test_utf8.c
parentec5d057d7e9eb3f17624209b981894e9ca165c97 (diff)
downloadoniguruma-2aa4e5958740785394d5d2ed7ac138150741d871.zip
oniguruma-2aa4e5958740785394d5d2ed7ac138150741d871.tar.gz
oniguruma-2aa4e5958740785394d5d2ed7ac138150741d871.tar.bz2
add some test cases
Diffstat (limited to 'test/test_utf8.c')
-rw-r--r--test/test_utf8.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_utf8.c b/test/test_utf8.c
index cf84e17..fbfe468 100644
--- a/test/test_utf8.c
+++ b/test/test_utf8.c
@@ -1286,6 +1286,13 @@ extern int main(int argc, char* argv[])
x2("(?i)[ǰ]", "ǰ", 0, 2);
x2("(?i)[ǰ]", "j\xcc\x8c", 0, 3);
//x2("(?i)[j]\xcc\x8c", "ǰ", 0, 2);
+ x2("(?i)\ufb00a", "ffa", 0, 3);
+ x2("(?i)ffz", "\xef\xac\x80z", 0, 4);
+ x2("(?i)\u2126", "\xcf\x89", 0, 2);
+ x2("a(?i)\u2126", "a\xcf\x89", 0, 3);
+ x2("(?i)A\u2126", "a\xcf\x89", 0, 3);
+ x2("(?i)A\u2126=", "a\xcf\x89=", 0, 4);
+ x2("(?i:ss)=1234567890", "\xc5\xbf\xc5\xbf=1234567890", 0, 15);
n(" \xfd", ""); /* https://bugs.php.net/bug.php?id=77370 */
/* can't use \xfc00.. because compiler error: hex escape sequence out of range */