diff options
Diffstat (limited to 'core/fuzz.zig')
| -rw-r--r-- | core/fuzz.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/fuzz.zig b/core/fuzz.zig index 616636ab..c68c7810 100644 --- a/core/fuzz.zig +++ b/core/fuzz.zig @@ -777,6 +777,8 @@ test "a dump and an image cut, flipped and grown: refused or loaded, never a pan const gpa = testing.allocator; const p = try th.withFile(gpa, "alpha beta\ngamma\n\tdelta \xe6\x97\xa5\n"); 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 }); // The byte dump a join streams, and the image a Dump keeps. const bytes = try pardes.dump.byteDump(p); defer gpa.free(bytes); @@ -785,6 +787,9 @@ test "a dump and an image cut, flipped and grown: refused or loaded, never a pan // 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. + // 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); 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); |
