mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:28:11 +00:00
LibJS: Improve correctness of rounding and bitwise operations
Patch from Anonymous
This commit is contained in:
parent
6622ad8895
commit
16a0e7a66d
9 changed files with 106 additions and 19 deletions
|
@ -40,6 +40,9 @@ test("basic numeric and", () => {
|
|||
expect(5 & 3).toBe(1);
|
||||
expect(5 & 4).toBe(4);
|
||||
expect(5 & 5).toBe(5);
|
||||
|
||||
expect(0xffffffff & 0).toBe(0);
|
||||
expect(0xffffffff & 0xffffffff).toBe(-1);
|
||||
});
|
||||
|
||||
test("and with non-numeric values", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue