1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +00:00

LibJS: Enable Temporal tests that now pass

These pass now that negative zero is disallowed by SignedBigInteger.
This commit is contained in:
Timothy Flynn 2022-02-06 14:39:49 +00:00 committed by Linus Groh
parent b0d6399f60
commit 72b3ea49d6

View file

@ -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);