summaryrefslogtreecommitdiff
path: root/core/fuzz.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-25 14:56:11 -0300
committerGabriel Schneider <[email protected]>2026-11-25 15:00:10 -0300
commit98872935ca6ea4e602fd5bfc3948f9bbe77a3ba3 (patch)
tree3270eda78534bc6caf3512cc269b3e39b6676e7a /core/fuzz.zig
parentc6dc2a6148855e0f02e86103dd80f47525a985e4 (diff)
parented518c211808ebee46f934320569d86121a8a739 (diff)
downloadpardes-98872935ca6ea4e602fd5bfc3948f9bbe77a3ba3.tar.gz
pardes-98872935ca6ea4e602fd5bfc3948f9bbe77a3ba3.zip
walk UI M11: Z1's three changes (nqultymy TagState.loaded holds a loaded tag state to what its own state reads, the dump fuzz seeding describe-key's state too; rllrtrxu R's two nits; xxmkroru ed518c211808 a Messages picker's keys are SPC h's, so Backspace on its empty field no longer kills the session) merged onto M10 (lkswuzxk), resolved by meaning: two text conflicts, both the tests the two lines put at the end of the same file (core/Pick.zig: F1's "a picker previews the row under its cursor from the frame its rows come ..." and Z1's "Backspace on a Messages picker's empty field ..."; core/TagState.zig: F1's "a rolled level that wraps has its hints on its last row ..." and Z1's two load tests), each kept whole, F1's first; the rest sits apart (F1's TagState.head and Pick.preview against Z1's TagState.loaded and Pick.words; F1 adds no field to a dump, so loaded's checks read the same state); the tree after the merge is M10's with exactly Z1's diff from M9 (5 files, +274 -20); core-test 1105/1276 (171 skipped: M10's 1102 + Z1's three), load 3 to 5
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/fuzz.zig')
-rw-r--r--core/fuzz.zig10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/fuzz.zig b/core/fuzz.zig
index 091eca63..56ded66b 100644
--- a/core/fuzz.zig
+++ b/core/fuzz.zig
@@ -803,6 +803,14 @@ test "a dump and an image cut, flipped and grown: refused or loaded, never a pan
defer gpa.free(bytes);
const image = try pardes.dump.dumpBytes(p);
defer gpa.free(image);
+ // And one with describe-key's state (SPC h k, `g d` found: a root, its
+ // keys, the leaf whose level the band replays), Help's fields as Help
+ // left them.
+ p.update(.{ .key = .{ .cp = pardes.Key.escape } });
+ for (" hkgd") |c| p.update(.{ .key = .{ .cp = c, .text = &[_]u8{c} } });
+ try testing.expect(p.view().tag_state.kind == .describe and p.view().tag_state.found);
+ const described = try pardes.dump.byteDump(p);
+ defer gpa.free(described);
// Seconds a road, each core used (`use`). The image's past 1779 seeds
// reach xitdb's own reader (a slot's tag past its kinds: a `switch` on
// it), a dependency's.
@@ -816,7 +824,7 @@ test "a dump and an image cut, flipped and grown: refused or loaded, never a pan
// `live` (the core read in place, its own `live` undefined), a live
// message's `src` length 0xAAAA when the digest walked it.
try loadSeed(bytes, .join, 6356);
- for ([_][]const u8{ bytes, image }, [_]Road{ .join, .restore }, [_]u64{ 2048, 1024 }) |whole, road, n| {
+ for ([_][]const u8{ bytes, described, image }, [_]Road{ .join, .join, .restore }, [_]u64{ 2048, 2048, 1024 }) |whole, road, n| {
try loadSeed(whole, road, 0);
for (1..n + 1) |seed| try loadSeed(whole, road, seed);
}