Skip to content

Commit c7d47cb

Browse files
committed
Add more tests for SJIS text conversion
1 parent 299690a commit c7d47cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/mbstring/tests/sjis_encoding.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ findInvalidChars($fromUnicode, $invalidChars, $unused, array_fill_keys(range(0,
6060
convertAllInvalidChars($invalidChars, $fromUnicode, 'UTF-16BE', 'Shift-JIS', '%');
6161
echo "Unicode -> SJIS conversion works on all invalid characters\n";
6262

63+
testValidString("\xFF\x5E", "\x81\x60", 'UTF-16BE', 'SJIS', false);
64+
echo "Other mappings from Unicode -> SJIS are OK\n";
65+
6366
// Test "long" illegal character markers
6467
mb_substitute_character("long");
6568
convertInvalidString("\x80", "BAD+80", "Shift-JIS", "UTF-8");
@@ -73,4 +76,5 @@ SJIS verification and conversion works on all valid characters
7376
SJIS verification and conversion works on all invalid characters
7477
Unicode -> SJIS conversion works on all valid characters
7578
Unicode -> SJIS conversion works on all invalid characters
79+
Other mappings from Unicode -> SJIS are OK
7680
Done!

0 commit comments

Comments
 (0)