LibJS: Improve correctness of rounding and bitwise operations

Patch from Anonymous
This commit is contained in:
Andreas Kling 2021-02-05 09:11:58 +01:00
commit 16a0e7a66d
Notes: sideshowbarker 2024-07-18 22:35:07 +09:00
9 changed files with 106 additions and 19 deletions

View file

@ -40,6 +40,9 @@ test("basic numeric xor", () => {
expect(5 ^ 3).toBe(6);
expect(5 ^ 4).toBe(1);
expect(5 ^ 5).toBe(0);
expect(0xffffffff ^ 0).toBe(-1);
expect(0xffffffff ^ 0xffffffff).toBe(0);
});
test("xor with non-numeric values", () => {