Skip to content

Commit

Permalink
[Tests] Temporarily skip this test, since it fails on newer engines
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 30, 2018
1 parent 3df305e commit d6a3484
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/number.js
Expand Up @@ -467,14 +467,18 @@ describe('Number', function () {
});

it('should work with correct whitespaces', function () {
var whitespace = ' \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000';

// Zero-width space (zws), next line character (nel), and non-character (bom) are not whitespace.
var nonWhitespaces = ['\u0085', '\u200b', '\ufffe'];

expect(String(Number(nonWhitespaces[0] + '0' + nonWhitespaces[0]))).to.equal('NaN');
expect(String(Number(nonWhitespaces[1] + '1' + nonWhitespaces[1]))).to.equal('NaN');
expect(String(Number(nonWhitespaces[2] + '2' + nonWhitespaces[2]))).to.equal('NaN');
});

it.skip('it works with updated unicode values', function () {
/* jscs:disable disallowUnusedVariables */
var whitespace = ' \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000';

expect(String(Number(whitespace + '3' + whitespace))).to.equal('3');
});
});
Expand Down

0 comments on commit d6a3484

Please sign in to comment.