## Task 2: emit the synthetic trajectory fixtures to tools/fixtures/ as JSONL. ## Run with: ## nim c -r common_libs/tests/gen_synthetic_fixtures.nim ## Deterministic: the random-walk fixture is seeded. import std/[os, strformat] import gun_harness/offline_range const outDir = currentSourcePath().parentDir.parentDir.parentDir / "tools" / "fixtures" proc main() = createDir(outDir) for name in SyntheticFixtureNames: let fx = synthesizeByName(name) let path = outDir / (name & ".jsonl") saveFixture(path, fx) echo fmt"wrote {path} ({fx.states.len} ticks, source={fx.meta.source})" echo "done." when isMainModule: main()