Versions 233 to 234
Lines 4–10 at 234 (were 4–10 at 233)
7−import { ViewCache } from "../views.ts";
88
1010
Lines 25–31 at 234 (were 25–31 at 233)
28− for (let i = 0; i < 33; i++) cache.view(new Counted(["a0"]));
2929 assert.notEqual(cache.view(set), view, "indexed identities obey the same cache eviction limit");
Lines 76–91 at 234 (were 76–91 at 233)
7878
79−test("the cache retains exactly 32 views and evicts the least recently used one", () => {
79+test("the cache retains exactly VIEW_COUNT views and evicts the least recently used one", () => {
82− control.setIncomingWeights(Array(33).fill(0));
84− const retained = Array.from({ length: 31 }, (_, i) => get(cache, `key-${i + 1}`));
86− const last = get(cache, "key-32");
88− assert.equal(get(cache, "key-32"), last);
8989 for (let i = 1; i < retained.length; i++) assert.equal(get(cache, `key-${i + 1}`), retained[i]);
- MCP
- compare on this site's /mcp
- CLI
- abso diff 233 234 worker/project/test/view-cache.test.ts --json
- JSON
- /christopher/abso-core/compare/233..234?file=worker%2Fproject%2Ftest%2Fview-cache.test.ts&format=json