feat: core types, time, rng, model fetch

Co-Authored-By: Claude Haiku 5.5 <[email protected]>
This commit is contained in:
Lucas Winther
2026-10-30 02:38:02 +01:00
co-authored by Claude Haiku 5.5
parent 0a6ec1dc40
commit bac4fbeb1d
8 changed files with 140 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
import { test, expect } from "bun:test";
import { ticksToSeconds, secondsToTicks } from "../../src/core/time.ts";
test("ticks/seconds", () => {
expect(ticksToSeconds(960, 60)).toBeCloseTo(1);
expect(ticksToSeconds(3840, 120)).toBeCloseTo(2);
expect(secondsToTicks(0.5, 120)).toBeCloseTo(960);
});