terminal option unicodeVersion

This commit is contained in:
Jörg Breitbart
2019-11-15 13:33:28 +01:00
parent 9c9aa68c23
commit c7ad4aa460
8 changed files with 31 additions and 21 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
*/
import { assert } from 'chai';
import { wcwidth } from 'common/CharWidth';
import { wcwidthV6 } from 'common/CharWidth';
it('wcwidth should match all values from the old implementation', function(): void {
// old implementation
@@ -177,6 +177,6 @@ it('wcwidth should match all values from the old implementation', function(): vo
// test full BMP range old vs new implmenetation
for (let i = 0; i < 65536; ++i) {
assert.equal(wcwidth(i), wcwidthOld(i), `mismatch for i: ${i}`);
assert.equal(wcwidthV6(i), wcwidthOld(i), `mismatch for i: ${i}`);
}
});