Versions 22 to 318
new file, 84 lines
1+// Each file's line history packed (abso Capacity, Graph.packedLines): a stored graph lays files out from a few pages,
2+// and must give exactly what the in-memory graph gives, through edits, deletes, moves between files and back.
3+
10+
11+test("a packed file lays out as the in-memory graph does, at every step, moves included", () => {
12+ const oracle = Repo.init({ "a.txt": lines("one", "two", "three", "four"), "b.txt": lines("bee"), "c.txt": "" });
36+ assert.deepEqual(packed.sequence(path), memory.sequence(path), `step ${i}: ${path}'s sequence`);
44+
52+ assert.equal(new View(new Graph({ storage }), new StableOverlaySet(oracle.shared)).text("a.txt"), "one\n");
57+
67+ // Another view of the same file reads only what its membership needs, not the history's pages again.
- MCP
- compare on this site's /mcp
- CLI
- abso diff 22 318 src/engine/test/packed-files.test.ts --json
- JSON
- /christopher/abso-core/compare/22..318?file=src%2Fengine%2Ftest%2Fpacked-files.test.ts&format=json