diff options
author | Linus Groh <mail@linusgroh.de> | 2020-04-05 14:18:30 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-05 16:01:46 +0200 |
commit | 0d7a1c31575c3079c2abada0a55c661b5da329c7 (patch) | |
tree | 305e9f26f62c7cd639757488f880b493a63cd353 /Libraries | |
parent | 2f775a925b61b3f7b2b73dbfeedcefb39e5765d3 (diff) | |
download | serenity-0d7a1c31575c3079c2abada0a55c661b5da329c7.zip |
LibJS: Update to-number-basic.js test
Uncomment lines that are now parsing correctly :^)
Diffstat (limited to 'Libraries')
-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)); |