diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-12-14 16:55:14 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-12-14 16:55:14 +0100 |
commit | 7bd40e53626a0ec5621fc5b71cfaf5956b4e6ba9 (patch) | |
tree | 4c62db42cffb80511f26e1168a6f54aba5815422 /test/test_utf8.c | |
parent | 4fdc47601d9e68343fa6818beda4c6a2012baccd (diff) | |
parent | 98ab313fe496ae7c792db29c80bf6b23347484ff (diff) |
Update upstream source from tag 'upstream/6.7.0'
Update to upstream version '6.7.0'
with Debian dir 14acc711c745d23b05fab9587ac8849fefa02c06
Diffstat (limited to 'test/test_utf8.c')
-rw-r--r-- | test/test_utf8.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_utf8.c b/test/test_utf8.c index 31fcfcd..a14cacc 100644 --- a/test/test_utf8.c +++ b/test/test_utf8.c @@ -1051,7 +1051,20 @@ extern int main(int argc, char* argv[]) n("^\\X.$", "\xE0\xAE\xA8\xE0\xAE\xBF"); + // a + COMBINING GRAVE ACCENT (U+0300) + x2("h\\Xllo", "ha\xCC\x80llo", 0, 7); + x2("\\x40", "@", 0, 1); + x2("\\x1", "\x01", 0, 1); + x2("\\x{1}", "\x01", 0, 1); + x2("\\x{4E38}", "\xE4\xB8\xB8", 0, 3); + x2("\\u4E38", "\xE4\xB8\xB8", 0, 3); + x2("\\u0040", "@", 0, 1); + + x2("c.*\\b", "abc", 2, 3); + x2("\\b.*abc.*\\b", "abc", 0, 3); + + e("\\u040", "@", ONIGERR_INVALID_CODE_POINT_VALUE); e("(?<abc>\\g<abc>)", "zzzz", ONIGERR_NEVER_ENDING_RECURSION); e("(?<=(?>abc))", "abc", ONIGERR_INVALID_LOOK_BEHIND_PATTERN); |