|
1 | | -// Pins for what #4393 (R5, D-22) fixed beyond #4365, and one row it leaves |
2 | | -// for the reader-seat carve. |
| 1 | +// Pins for what #4393 (R5, D-22) fixed beyond #4365, and #4399. |
3 | 2 | // |
4 | 3 | // - #4402: a pass that reads `latest(s)` before `s()` computes once per |
5 | 4 | // plain write, as `[s(), latest(s)]` does (D-22: one pass; it re-derives |
6 | 5 | // only if the flush parks). |
7 | 6 | // - #4398: `[isPending(m1), m1()]` in one effect, split across two, or |
8 | 7 | // `m1()` alone show the same values when the write changes during the hold |
9 | 8 | // (D-26, F-6: a grouped read holds as a lone read; #4284). |
10 | | -// - #4399 (it.fails, carve row): two actions, each holding a verdict |
11 | | -// memo's write, ask `m1:15` twice: once in A's verdict lane, once in B's |
12 | | -// transaction over the same inputs (F-9). |
| 9 | +// - #4399: two actions, each holding a verdict memo's write, ask `m1:15` |
| 10 | +// once: in A's verdict lane. `m1`'s pass over `m0b`'s landing is the |
| 11 | +// hold's work (D-25: re-run by the write its hold holds, it reads plainly |
| 12 | +// in either read order) and stays out of A's lane; moved into it, it read |
| 13 | +// the landing as the screen and asked `m1:15` again (F-9). |
13 | 14 | import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; |
14 | 15 | import { |
15 | 16 | action, |
@@ -129,14 +130,13 @@ describe("#4398: grouping isPending(m1) with m1() shows the same values", () => |
129 | 130 | }); |
130 | 131 |
|
131 | 132 | describe("#4399: two actions, each holding a verdict memo's write", () => { |
132 | | - // F-9: a re-ask of the same question is no new question. A row for the |
133 | | - // reader-seat carve: telling B's pass apart from A's lane pass over the |
134 | | - // same inputs needs a per-pass check. |
| 133 | + // F-9: a re-ask of the same question is no new question. D-25: `m1`'s |
| 134 | + // pass over `m0b`'s landing is its hold's work, not A's verdict lane's |
| 135 | + // (lanes.ts `holdsPass`). |
135 | 136 | const once = async (reader: Reader) => { |
136 | 137 | const { asks, values } = await run(reader, "two-actions"); |
137 | 138 | expect(new Set(asks).size, asks.join(" ")).toBe(asks.length); |
138 | 139 | expect(values.at(-1)).toBe("26"); |
139 | 140 | }; |
140 | | - it("each question asked once (pair)", () => once("pair")); |
141 | | - it.fails.each(["split", "value"] as const)("each question asked once (%s)", once); |
| 141 | + it.each(["pair", "split", "value"] as const)("each question asked once (%s)", once); |
142 | 142 | }); |
0 commit comments