From 96cabca7ebe287692ebdff0dba6bb2897eba9d3e Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 23:57:01 -0300 Subject: pdf: the test PDFs are files under test/pdf-fixtures, byte for byte what the generators wrote, where pdf.zig wrote each object by object (139 lines fewer there): testFixture reads one, the two outlines sized by the bridge's limits stay generated, and the sections bench embeds its outline Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/pdf_sections_bench.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/pdf_sections_bench.zig') diff --git a/test/pdf_sections_bench.zig b/test/pdf_sections_bench.zig index 2796910c..b793bd0c 100644 --- a/test/pdf_sections_bench.zig +++ b/test/pdf_sections_bench.zig @@ -65,8 +65,7 @@ pub fn main(init: std.process.Init) !void { const args = try init.minimal.args.toSlice(init.arena.allocator()); const config = parseArgs(args); - const fixture = try pdf.makeOutlineTestPdf(gpa); - defer gpa.free(fixture); + const fixture = @embedFile("pdf-fixtures/outline.pdf"); var path_buf: [256]u8 = undefined; const path = try std.fmt.bufPrint(&path_buf, "/tmp/pardes-pdf-sections-bench-{d}.pdf", .{libc.getpid()}); try writeFile(path, fixture); -- cgit v1.3