gecko-dev/intl/uconv/tests/unit/test_bug396637.js

12 lines
287 B
JavaScript
Raw Normal View History

// Tests conversion of a single byte from UTF-16 to Unicode
load('CharsetConversionTests.js');
const inString = "A";
const expectedString = "\ufffd";
const charset = "UTF-16BE";
function run_test() {
checkDecode(CreateScriptableConverter(), charset, inString, expectedString);
}