diff options
Diffstat (limited to 'core/fuzz.zig')
| -rw-r--r-- | core/fuzz.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/fuzz.zig b/core/fuzz.zig index c68c7810..7f4526a7 100644 --- a/core/fuzz.zig +++ b/core/fuzz.zig @@ -779,6 +779,10 @@ 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 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} } }); + try testing.expect(p.view().tag_state.kind == .help and p.view().tag_state.nhits > 0); // The byte dump a join streams, and the image a Dump keeps. const bytes = try pardes.dump.byteDump(p); defer gpa.free(bytes); @@ -790,6 +794,9 @@ test "a dump and an image cut, flipped and grown: refused or loaded, never a pan // Join seed 19224: the theme read after the core a reference to a // slice the core holds, freed by hand and again by the rollback. try loadSeed(bytes, .join, 19224); + // Join seed 31554: the namespace's opens_len past its 64 slots, refused, + // and the rollback's teardown of the namespace read that far. + try loadSeed(bytes, .join, 31554); for ([_][]const u8{ bytes, image }, [_]Road{ .join, .restore }, [_]u64{ 2048, 1024 }) |whole, road, n| { try loadSeed(whole, road, 0); for (1..n + 1) |seed| try loadSeed(whole, road, seed); |
