diff options
Diffstat (limited to 'Libraries/LibJS')
-rw-r--r-- | Libraries/LibJS/Tests/to-number-basic.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Libraries/LibJS/Tests/to-number-basic.js b/Libraries/LibJS/Tests/to-number-basic.js index ad5c31ad76..afde29785f 100644 --- a/Libraries/LibJS/Tests/to-number-basic.js +++ b/Libraries/LibJS/Tests/to-number-basic.js @@ -17,12 +17,11 @@ try { assert(-"42" === -42); assert(+42 === 42); assert(-42 === -42); + assert(+1.23 === 1.23); + assert(-1.23 === -1.23); // FIXME: returns NaN // assert(+"1.23" === 1.23) // assert(-"1.23" === -1.23) - // FIXME: chokes on ASSERT - // assert(+1.23 === 1.23); - // assert(-1.23 === -1.23); assert(isNaN(+undefined)); assert(isNaN(-undefined)); |