summaryrefslogtreecommitdiff
path: root/src/ninep
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:57:01 -0300
committerGabriel Schneider <[email protected]>2026-11-05 01:02:08 -0300
commit96cabca7ebe287692ebdff0dba6bb2897eba9d3e (patch)
treefc74379958b5d6763966e4bc7c65e6a08e9ff4d5 /src/ninep
parentb4863573f775c73ca4e9aa233af2f6e5113c06b3 (diff)
downloadpardes-96cabca7ebe287692ebdff0dba6bb2897eba9d3e.tar.gz
pardes-96cabca7ebe287692ebdff0dba6bb2897eba9d3e.zip
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 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/ninep')
-rw-r--r--src/ninep/ctl.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig
index 7c566f23..a1504acb 100644
--- a/src/ninep/ctl.zig
+++ b/src/ninep/ctl.zig
@@ -2173,7 +2173,7 @@ test "a truncated PDF fails its look with its path and why" {
defer p.deinit();
var tmp = testing.tmpDir(.{});
defer tmp.cleanup();
- const bytes = try @import("mupdf").makeLinksTestPdf(testing.allocator);
+ const bytes = try @import("mupdf").testFixture(testing.allocator, "links.pdf");
defer testing.allocator.free(bytes);
try tmp.dir.writeFile(testing.io, .{ .sub_path = "cut.pdf", .data = bytes[0..40] });
var dir_buf: [4096]u8 = undefined;
@@ -2190,7 +2190,7 @@ test "a PDF's body reads its page's text layer, and takes no write" {
defer p.deinit();
var tmp = testing.tmpDir(.{});
defer tmp.cleanup();
- const bytes = try @import("mupdf").makeLinksTestPdf(testing.allocator);
+ const bytes = try @import("mupdf").testFixture(testing.allocator, "links.pdf");
defer testing.allocator.free(bytes);
try tmp.dir.writeFile(testing.io, .{ .sub_path = "doc.pdf", .data = bytes });
var dir_buf: [4096]u8 = undefined;