Skip to content

Commit 51b6c68

Browse files
committed
Add another test for GB18030 text conversion
1 parent a0415b2 commit 51b6c68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/mbstring/tests/gb18030_encoding.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ testInvalidString("\x90\x30\x81\xFF", "\x00\x00\x00%", "GB18030", "UTF-32BE");
295295
testInvalidString("\xE3\x32\x9A\x36", "\x00\x00\x00%", "GB18030", "UTF-32BE");
296296
testInvalidString("\xE4\x30\x81\x35", "\x00\x00\x00%\x00\x00\x00%", "GB18030", "UTF-32BE");
297297

298+
testInvalidString("\x90\x30\x80\x30", "\x00\x00\x00%\x00\x00\x00\x30", "GB18030", "UTF-32BE");
299+
298300
echo "Tested GB18030 4-byte characters <-> UTF-16BE\n";
299301

300302
testAllValidChars($fromUnicode, 'UTF-16BE', 'GB18030', false);

0 commit comments

Comments
 (0)