diff options
Diffstat (limited to 'js/text_encoding_test.ts')
-rw-r--r-- | js/text_encoding_test.ts | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/js/text_encoding_test.ts b/js/text_encoding_test.ts index efb841fc6..1e04cbeb8 100644 --- a/js/text_encoding_test.ts +++ b/js/text_encoding_test.ts @@ -25,17 +25,6 @@ test(function btoaFailed() { assertEqual(err.name, "InvalidInput"); }); -test(function textDecoder() { - // prettier-ignore - const fixture = new Uint8Array([ - 0xef, 0xbf, 0xbd, 0xef, 0xbf, 0xbd, - 0xef, 0xbf, 0xbd, 0xef, 0xbf, 0xbd, - 0xef, 0xbf, 0xbd, 0xef, 0xbf, 0xbd - ]); - const decoder = new TextDecoder(); - assertEqual(decoder.decode(fixture), "������"); -}); - test(function textDecoder2() { // prettier-ignore const fixture = new Uint8Array([ @@ -65,17 +54,6 @@ test(function textDecoderErrorEncoding() { assert(didThrow); }); -test(function textEncoder() { - const fixture = "������"; - const encoder = new TextEncoder(); - // prettier-ignore - assertEqual(Array.from(encoder.encode(fixture)), [ - 0xef, 0xbf, 0xbd, 0xef, 0xbf, 0xbd, - 0xef, 0xbf, 0xbd, 0xef, 0xbf, 0xbd, - 0xef, 0xbf, 0xbd, 0xef, 0xbf, 0xbd - ]); -}); - test(function textEncoder2() { const fixture = "𝓽𝓮𝔁𝓽"; const encoder = new TextEncoder(); |