merge: scenario 2400 long-run parity

This commit is contained in:
2026-08-04 18:19:53 +00:00
30 changed files with 517 additions and 183 deletions
+13
View File
@@ -61,4 +61,17 @@ describe('GameClock', () => {
expect(Number.isNaN(projected.getTime())).toBe(false);
expect(clock.dateToTick(projected)).toBe(tick);
});
it('truncates sub-millisecond projections like Ref GameClock', () => {
const clock = new GameClock({
baseTime,
tick: 0,
mode: 'manual',
wallAnchor: baseTime,
turnSeconds: 600,
});
expect(clock.tickToDate(14_115_919).toISOString()).toBe('2042-01-01T00:03:55.265Z');
expect(clock.tickToDate(-1).toISOString()).toBe('2041-12-31T23:59:59.999Z');
});
});