1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:17:35 +00:00

LibCrypo: Simplify mixed-sign bitwise_or

No behavior change.
This commit is contained in:
Nico Weber 2022-01-18 09:22:07 -05:00 committed by Ali Mohammad Pur
parent 2392f65345
commit e09f74903e
2 changed files with 14 additions and 5 deletions

View file

@ -44,6 +44,7 @@ describe("correct behavior", () => {
expect(1n | 2n).toBe(3n);
expect(0n | -1n).toBe(-1n);
expect(0n | -2n).toBe(-2n);
expect(5n ^ 3n).toBe(6n);