summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Tests/operators/binary-bitwise-or.js
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Tests/operators/binary-bitwise-or.js')
-rw-r--r--Userland/Libraries/LibJS/Tests/operators/binary-bitwise-or.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Tests/operators/binary-bitwise-or.js b/Userland/Libraries/LibJS/Tests/operators/binary-bitwise-or.js
index 485d1226d2..28ef3d12a7 100644
--- a/Userland/Libraries/LibJS/Tests/operators/binary-bitwise-or.js
+++ b/Userland/Libraries/LibJS/Tests/operators/binary-bitwise-or.js
@@ -40,6 +40,10 @@ test("basic numeric or", () => {
expect(5 | 3).toBe(7);
expect(5 | 4).toBe(5);
expect(5 | 5).toBe(5);
+
+ expect(0xffffffff | 0).toBe(-1);
+ expect(0xffffffff | 0xffffffff).toBe(-1);
+ expect(2147483648 | 0).toBe(-2147483648);
});
test("or with non-numeric values", () => {