File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11const assert = require ( 'assert' )
22const math = require ( '../../../src/main' )
3- // const isNumeric = math.isNumeric
43const hasNumericValue = math . hasNumericValue
54const bignumber = math . bignumber
65const fraction = math . fraction
@@ -17,8 +16,9 @@ describe('hasNumericValue', function () {
1716 assert . strictEqual ( hasNumericValue ( '2.3' ) , true )
1817 assert . strictEqual ( hasNumericValue ( '100a' ) , false )
1918 assert . strictEqual ( hasNumericValue ( '0x11' ) , true )
20- assert . strictEqual ( hasNumericValue ( '0b11' ) , true )
21- assert . strictEqual ( hasNumericValue ( '0o11' ) , true )
19+ // The following two tests are not working on IE11
20+ // assert.strictEqual(hasNumericValue('0b11'), true)
21+ // assert.strictEqual(hasNumericValue('0o11'), true)
2222 assert . strictEqual ( hasNumericValue ( '123e-1' ) , true )
2323 assert . strictEqual ( hasNumericValue ( '' ) , false )
2424 assert . strictEqual ( hasNumericValue ( 'foo' ) , false )
You can’t perform that action at this time.
0 commit comments