summaryrefslogtreecommitdiff
path: root/Libraries/LibJS
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-04-05 14:18:30 +0100
committerAndreas Kling <kling@serenityos.org>2020-04-05 16:01:46 +0200
commit0d7a1c31575c3079c2abada0a55c661b5da329c7 (patch)
tree305e9f26f62c7cd639757488f880b493a63cd353 /Libraries/LibJS
parent2f775a925b61b3f7b2b73dbfeedcefb39e5765d3 (diff)
downloadserenity-0d7a1c31575c3079c2abada0a55c661b5da329c7.zip
LibJS: Update to-number-basic.js test
Uncomment lines that are now parsing correctly :^)
Diffstat (limited to 'Libraries/LibJS')
-rw-r--r--Libraries/LibJS/Tests/to-number-basic.js5
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));