Skip to content
This repository has been archived by the owner on Sep 28, 2018. It is now read-only.

Commit

Permalink
Update indexes to pick up windows-1255 change, add test. Resolves #59
Browse files Browse the repository at this point in the history
  • Loading branch information
inexorabletash committed Oct 25, 2016
1 parent 2768123 commit 192293e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/encoding-indexes.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions test/test-misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,3 +385,9 @@ test(function() {
assert_array_equals([].slice.call(encoder.encode(false)), [102, 97, 108, 115, 101]);
assert_array_equals([].slice.call(encoder.encode(0)), [48]);
}, 'encode() called with falsy arguments (polyfill bindings)');

test(function() {
// Regression test for https://github.com/inexorabletash/text-encoding/issues/59
assert_array_equals(
new TextDecoder('windows-1255').decode(new Uint8Array([0xCA])), '\u05BA');
}, 'windows-1255 map 0xCA to U+05BA');

0 comments on commit 192293e

Please sign in to comment.