diff options
author | K.Kosako <kosako@sofnec.co.jp> | 2017-08-21 14:16:43 +0900 |
---|---|---|
committer | K.Kosako <kosako@sofnec.co.jp> | 2017-08-21 14:16:43 +0900 |
commit | 25d02fd94e293226c8d7f022c5542be9d2b31e74 (patch) | |
tree | b50c39a4fa6f4f496b2ad4e53f4710e5856ab339 | |
parent | 4f89b2a60a56ab332239a66e9dbbcab0533b2501 (diff) | |
download | oniguruma-25d02fd94e293226c8d7f022c5542be9d2b31e74.zip oniguruma-25d02fd94e293226c8d7f022c5542be9d2b31e74.tar.gz oniguruma-25d02fd94e293226c8d7f022c5542be9d2b31e74.tar.bz2 |
add test cases for \y and \Y into UTF-16BE
-rw-r--r-- | test/testu.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/testu.c b/test/testu.c index 5eed42e..2e7db0e 100644 --- a/test/testu.c +++ b/test/testu.c @@ -929,6 +929,21 @@ extern int main(int argc, char* argv[]) n("\000[\000[\000:\000g\000r\000a\000p\000h\000:\000]\000]\000\000", "\x0a\x00\000\000"); + // extended grapheme cluster + + // CR + LF + n("\000.\000\\\000y\000\\\000O\000\000", "\x00\x0d\x00\x0a\000\000"); + x2("\000.\000\\\000Y\000\\\000O\000\000", "\x00\x0d\x00\x0a\000\000", 0, 4); + + // LATIN SMALL LETTER G, COMBINING DIAERESIS + n("\000^\000.\000\\\000y\000.\000$\000\000", "\x00\x67\x03\x08\000\000"); + x2("\000.\000\\\000Y\000.\000\000", "\x00\x67\x03\x08\000\000", 0, 4); + x2("\000\\\000y\000.\000\\\000Y\000.\000\\\000y\000\000", + "\x00\x67\x03\x08\000\000", 0, 4); + // TAMIL LETTER NA, TAMIL VOWEL SIGN I, + x2("\000.\000\\\000Y\000.\000\000", "\x0B\xA8\x0B\xBF\000\000", 0, 4); + n("\000.\000\\\000y\000.\000\000", "\x0B\xA8\x0B\xBF\000\000"); + fprintf(stdout, "\nRESULT SUCC: %d, FAIL: %d, ERROR: %d (by Oniguruma %s)\n", nsucc, nfail, nerror, onig_version()); |