diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-04-05 00:11:47 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-05 10:37:02 +0200 |
commit | 41bfff1abe995a4a590ea23fa741cf46381b0a94 (patch) | |
tree | c6c00996597ea34bff67cd49e03ab11347f60920 /Libraries/LibJS/Tests/binary-bitwise-operators-basic.js | |
parent | 3e8cf79efa637bcacbff2615108eceb77d915892 (diff) | |
download | serenity-41bfff1abe995a4a590ea23fa741cf46381b0a94.zip |
LibJS: Correctness fixes for bitwise_or, address FIXME's in test.
Diffstat (limited to 'Libraries/LibJS/Tests/binary-bitwise-operators-basic.js')
-rw-r--r-- | Libraries/LibJS/Tests/binary-bitwise-operators-basic.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Libraries/LibJS/Tests/binary-bitwise-operators-basic.js b/Libraries/LibJS/Tests/binary-bitwise-operators-basic.js index e941e0c8f3..81a772d9e6 100644 --- a/Libraries/LibJS/Tests/binary-bitwise-operators-basic.js +++ b/Libraries/LibJS/Tests/binary-bitwise-operators-basic.js @@ -48,14 +48,14 @@ try { assert(("42" | 6) === 46); assert((x | y) === 7); assert((x | [[[[12]]]]) === 15); - // FIXME: These should all return 0 - // assert((undefined | y) === 7); - // assert(("a" | "b") === 0); - // assert((null | null) === 0); - // assert((undefined | undefined) === 0); - // assert((NaN | NaN) === 0); - // assert((Infinity | Infinity) === 0); - // assert((-Infinity | Infinity) === 0); + assert((undefined | y) === 7); + assert(("a" | "b") === 0); + assert((null | null) === 0); + assert((undefined | undefined) === 0); + assert((NaN | NaN) === 0); + assert((NaN | 6) === 6); + assert((Infinity | Infinity) === 0); + assert((-Infinity | Infinity) === 0); console.log("PASS"); } catch (e) { |