authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-31 17:36:45 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-31 17:36:45 -07:00
log7fcd3354080eb997c2b50b48f4e331b44d9624f1
tree070cdeb4cbffc0f1dac4f30361dd1805302fef0f
parentb81a9ced5fceadce93207c59434e5905de3efba8
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

make this case list more compact


1 files changed, 7 insertions(+), 2 deletions(-)

test.zig+7-2
......@@ -11,12 +11,17 @@ test {
1111
1212 try expect(doc.mapping.get_string("id").?).toEqualString("g982zq6e8wsvnmduerpbf8787hu85brugmngn8wf");
1313}
14test {
14
15fn fuzzCase(embedfile_content: []const u8) void {
1516 const alloc = std.testing.allocator;
16 const doc = yaml.parse(alloc, @embedFile("./fuzz/crashes/id:000000,sig:06,src:000000,time:2049,execs:911,op:quick,pos:263")) catch return;
17 const doc = yaml.parse(alloc, embedfile_content) catch return;
1718 defer doc.deinit(alloc);
1819}
1920
21// zig fmt: off
22test { fuzzCase(@embedFile("./fuzz/crashes/id:000000,sig:06,src:000000,time:2049,execs:911,op:quick,pos:263")); }
23// zig fmt: on
24
2025fn parseTest(comptime basename: [:0]const u8) !void {
2126 const alloc = std.testing.allocator;
2227 const file = try nfs.cwd().openFile(yamltestsuite_root ++ "/src/" ++ basename, .{});