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
commit 72b3ea49d6
Notes: sideshowbarker 2024-07-17 19:42:49 +09:00

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