初始化
This commit is contained in:
13
utils/text-encoding-0.6.3/test/test-gb18030.js
Normal file
13
utils/text-encoding-0.6.3/test/test-gb18030.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// This is free and unencumbered software released into the public domain.
|
||||
// See LICENSE.md for more information.
|
||||
|
||||
test(function() {
|
||||
var cases = [
|
||||
{bytes: [148, 57, 218, 51], string: '\uD83D\uDCA9' } // U+1F4A9 PILE OF POO
|
||||
];
|
||||
|
||||
cases.forEach(function(c) {
|
||||
assert_equals(new TextDecoder('gb18030').decode(new Uint8Array(c.bytes)),
|
||||
c.string);
|
||||
});
|
||||
}, 'gb18030 ranges');
|
||||
Reference in New Issue
Block a user