mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibJS: Enable Temporal tests that now pass
These pass now that negative zero is disallowed by SignedBigInteger.
This commit is contained in:
parent
b0d6399f60
commit
72b3ea49d6
Notes:
sideshowbarker
2024-07-17 19:42:49 +09:00
Author: https://github.com/trflynn89
Commit: 72b3ea49d6
Pull-request: https://github.com/SerenityOS/serenity/pull/12307
Reviewed-by: https://github.com/linusg ✅
1 changed files with 3 additions and 4 deletions
|
@ -11,10 +11,9 @@ describe("correct behavior", () => {
|
|||
8_640_000_000_000_000_000n
|
||||
);
|
||||
|
||||
// FIXME: These seemingly produce correct results in js(1s), but for some reason don't pass. Investigate.
|
||||
// expect(new Temporal.Instant(-0n).epochMicroseconds).toBe(-0n);
|
||||
// expect(new Temporal.Instant(-1n).epochMicroseconds).toBe(-0n);
|
||||
// expect(new Temporal.Instant(-999n).epochMicroseconds).toBe(-0n);
|
||||
expect(new Temporal.Instant(-0n).epochMicroseconds).toBe(-0n);
|
||||
expect(new Temporal.Instant(-1n).epochMicroseconds).toBe(-0n);
|
||||
expect(new Temporal.Instant(-999n).epochMicroseconds).toBe(-0n);
|
||||
expect(new Temporal.Instant(-1_000n).epochMicroseconds).toBe(-1n);
|
||||
expect(new Temporal.Instant(-1_500n).epochMicroseconds).toBe(-1n);
|
||||
expect(new Temporal.Instant(-1_999n).epochMicroseconds).toBe(-1n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue