From 0d7a1c31575c3079c2abada0a55c661b5da329c7 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 5 Apr 2020 14:18:30 +0100 Subject: LibJS: Update to-number-basic.js test Uncomment lines that are now parsing correctly :^) --- Libraries/LibJS/Tests/to-number-basic.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Libraries') 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)); -- cgit v1.2.3