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/mode.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/mode.zig') diff --git a/test/mode.zig b/test/mode.zig index 40a23fc4..cb618a98 100644 --- a/test/mode.zig +++ b/test/mode.zig @@ -101,7 +101,7 @@ test "Mode leaves image and PDF document modes unchanged" { if (comptime panes.Pdf.enabled) { var tmp = std.testing.tmpDir(.{}); defer tmp.cleanup(); - const bytes = try panes.Pdf.pdf.makeLinksTestPdf(std.testing.allocator); + const bytes = try panes.Pdf.pdf.testFixture(std.testing.allocator, "links.pdf"); defer std.testing.allocator.free(bytes); try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "mode.pdf", .data = bytes }); var buffer: [4096]u8 = undefined; -- cgit v1.3