From: K.Kosako Date: Tue, 29 Aug 2017 05:22:24 +0000 (+0900) Subject: add a test case for \X X-Git-Tag: v6.6.1~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e949f1c59fd5ef7e7fad796462ea3c11e16ec9cf;p=onig add a test case for \X --- diff --git a/test/test_utf8.c b/test/test_utf8.c index b6e01e7..3a162ab 100644 --- a/test/test_utf8.c +++ b/test/test_utf8.c @@ -1047,6 +1047,8 @@ extern int main(int argc, char* argv[]) x2("^\\X$", "\xE0\xA4\xB7\xE0\xA4\xBF", 0, 6); n("\\X\\X", "\xE0\xA4\xB7\xE0\xA4\xBF"); + n("^\\X.$", "\xE0\xAE\xA8\xE0\xAE\xBF"); + e("(?\\g)", "zzzz", ONIGERR_NEVER_ENDING_RECURSION); e("(?<=(?>abc))", "abc", ONIGERR_INVALID_LOOK_BEHIND_PATTERN);