From: K.Kosako Date: Tue, 14 May 2019 00:28:18 +0000 (+0900) Subject: fix some test cases X-Git-Tag: v6.9.3~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8b2da59c47250484fc10b7db825e973a36a4004;p=onig fix some test cases --- diff --git a/test/test_utf8.c b/test/test_utf8.c index 8f8087d..33e03bd 100644 --- a/test/test_utf8.c +++ b/test/test_utf8.c @@ -1203,11 +1203,12 @@ extern int main(int argc, char* argv[]) x2("a{3,2}?", "", 0, 0); /* == (?:a{3,2})?*/ x2("a{2,3}+a", "aaa", 0, 3); /* == (?:a{2,3})+*/ - n(" \\xfd", ""); /* https://bugs.php.net/bug.php?id=77370 */ - n("()0\\xfc00000\\xfc00000\\xfc00000\\xfc", ""); /* https://bugs.php.net/bug.php?id=77371 */ - x2("000||0\\xfa", "0", 0, 0); /* https://bugs.php.net/bug.php?id=77381 */ - e("(?i)000000000000000000000\\xf0", "", ONIGERR_TOO_SHORT_MULTI_BYTE_STRING); /* https://bugs.php.net/bug.php?id=77382 */ - n("0000\\\\xf5", "0"); /* https://bugs.php.net/bug.php?id=77385 */ + n(" \xfd", ""); /* https://bugs.php.net/bug.php?id=77370 */ + /* can't use \xfc00.. because compiler error: hex escape sequence out of range */ + n("()0\\xfc00000\\xfc00000\\xfc00000\xfc", ""); /* https://bugs.php.net/bug.php?id=77371 */ + x2("000||0\xfa", "0", 0, 0); /* https://bugs.php.net/bug.php?id=77381 */ + e("(?i)000000000000000000000\xf0", "", ONIGERR_INVALID_CODE_POINT_VALUE); /* https://bugs.php.net/bug.php?id=77382 */ + n("0000\\\xf5", "0"); /* https://bugs.php.net/bug.php?id=77385 */ n("(?i)FFF00000000000000000\xfd", ""); /* https://bugs.php.net/bug.php?id=77394 */