From 980e90eb35b7e122b609520e94afdb47ff851758 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 25 Nov 2026 01:26:17 -0300 Subject: fuzz: the dump fuzz's session holds a kept picker, a recipe and a search word beside the reader's walk and Help (walk UI M3 item 4, the gate's setup): a list picker landed in the reading pane (Pardes.picks: its rows, query and marks kept after its Enter, its list word in the trail), `%s a` Enter (a recipe's word and its selections, Pane.recipe_sels) and `/gam` Enter (a search's word and its places), checked present before the dump is cut; at its kept counts (2048 join, 1024 image seeds) core-test's "a dump and an image cut ..." passes (11/11 with its filter); the 40,000-seed run is the merge's gate Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE --- core/fuzz.zig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/core/fuzz.zig b/core/fuzz.zig index 7f4526a7..2d589054 100644 --- a/core/fuzz.zig +++ b/core/fuzz.zig @@ -779,6 +779,21 @@ test "a dump and an image cut, flipped and grown: refused or loaded, never a pan defer p.deinit(); // A reader's walk in it: a union, a fixed array held to its length. p.panes[0].?.trail = pardes.Trail.reader(7, "/x/rank.zig", .{ .line = 3, .col = 2 }); + // A picker kept after its Enter (Pardes.picks: its rows, its query, + // its marks), its list word in the walk; a recipe's word and its + // selections (`%s` then Enter); a search's word and its places. + pardes.Pick.open(p, 0, .list, "Refs", "", "/test.txt:2:1: gamma\n/test.txt:1:1: alpha\n"); + pardes.Pick.landHere(p); + for ("%sa\r/gam\r") |c| p.update(.{ .key = .{ .cp = if (c == '\r') pardes.Key.enter else c, .text = &[_]u8{c} } }); + try testing.expect(p.picks[0] != null and p.panes[0].?.places.started); + var kinds: [3]bool = @splat(false); + for (p.panes[0].?.trail.steps[0..p.panes[0].?.trail.n]) |s| switch (s) { + .list => kinds[0] = true, + .recipe => kinds[1] = true, + .search => kinds[2] = true, + else => {}, + }; + try testing.expect(kinds[0] and kinds[1] and kinds[2]); // A view's tag out of rest in it (View.tag_state): SPC t w remembered // (a group's last leaf), then Help typed into (a scope, a field, hits). for (" tw ?hel") |c| p.update(.{ .key = .{ .cp = c, .text = &[_]u8{c} } }); -- cgit v1.3