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:
parent
2392f65345
commit
e09f74903e
2 changed files with 14 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue