Versions 76 to 318
new file, 76 lines
5+import { JsonStringChunks, jsonValueChunks, registerJsonChunkValue } from "../json-value-chunks.ts";
8+
9+test("many stored insertion runs serialize with linear reads and support backwards access", (t) => {
12+ const files = Object.fromEntries(Array.from({ length: 128 }, (_, i) => [`f${i}`, `${i}:${"x".repeat(17000)}\n`]));
19+ assert.ok(storage.reads - before < 128 * 25, `serialization used ${storage.reads - before} reads`);
26+
51+
60+ assert.throws(() => [...jsonValueChunks(new JsonStringChunks(() => ["x".repeat(16385)]))], /exceeds bound/);
62+
68+ const atom = buildBase({ f: `${"x".repeat(length)}\n` }, { author: "writer", message: "init" });
- MCP
- compare on this site's /mcp
- CLI
- abso diff 76 318 src/engine/test/json-string-chunks.test.ts --json
- JSON
- /christopher/abso-core/compare/76..318?file=src%2Fengine%2Ftest%2Fjson-string-chunks.test.ts&format=json