(Adaptive Loop) Pass 4
This commit is contained in:
36 files changed
+12943
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { buildInitialState, getScenario } from "../src/domain/scenarios.ts";
|
||||
import { hashState, reachableInheritanceAt } from "../src/domain/solver.ts";
|
||||
|
||||
describe("solver support", () => {
|
||||
it("hashes identical canonical states identically", () => {
|
||||
const scenario = getScenario("s1-heat");
|
||||
expect(hashState(buildInitialState(scenario, "campaign"))).toBe(hashState(buildInitialState(scenario, "campaign")));
|
||||
});
|
||||
|
||||
it("enumerates the complete conservative inheritance superset", () => {
|
||||
expect([2, 3, 4, 5].map((index) => reachableInheritanceAt(index).length)).toEqual([9, 37, 93, 163]);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user