Add another test for UTF-16LE

This commit is contained in:
Alex Dowad 2021-08-25 22:17:20 +02:00
parent 7472c82c45
commit 51a32ccaf4

View File

@ -879,6 +879,9 @@ $invalid = array(
// First half of surrogate pair at end of string
"\x01\xD8" => "\x00\x00\x00%",
// Two successive codepoints which are both the 1st part of a surrogate pair
"\x01\xD8\x02\xD8" => "\x00\x00\x00%\x00\x00\x00%"
);
testInvalidCodepoints($invalid, 'UTF-16LE');