Skip to content

Commit

Permalink
higher timeout for test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jerch committed Jul 18, 2017
1 parent 20048d3 commit cd5827e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/InputHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,15 @@ const old_wcwidth = (function(opts) {
})({nul: 0, control: 0}); // configurable options

describe('wcwidth', () => {
it('same as old implementation for BMP and individual higher', () => {
it('same as old implementation for BMP and individual higher', (done) => {
for (let i = 0; i < 65536; ++i)
assert.equal(wcwidth(i), old_wcwidth(i));
// test some individual higher to fullfill branching
assert.equal(wcwidth(0x10A01), old_wcwidth(0x10A01));
assert.equal(wcwidth(0x30000), old_wcwidth(0x30000));
assert.equal(wcwidth(0x3fffe), old_wcwidth(0x3fffe));
});
done();
}).timeout(3000);
/*
it('new is at least 5 times faster', () => {
let start_new = new Date().getTime();
Expand Down

0 comments on commit cd5827e

Please sign in to comment.