test speedup defensive

This commit is contained in:
Jörg Breitbart
2017-07-16 14:09:25 +02:00
parent 6733c6ce1f
commit 5d87b54390
+2 -2
View File
@@ -176,8 +176,8 @@ describe('wcwidth', () => {
for (let i = 0; i < 65536; ++i)
y = old_wcwidth(i);
let end_old = new Date().getTime();
//console.log((end_new - start_new));
//console.log((end_old - start_old));
// console.log((end_new - start_new));
// console.log((end_old - start_old));
assert.equal(((end_new - start_new) * 5 < (end_old - start_old)), true);
});
});