summaryrefslogtreecommitdiff
path: root/src/tui/tui.zig
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/tui/tui.zig
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/tui/tui.zig')
-rw-r--r--src/tui/tui.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tui/tui.zig b/src/tui/tui.zig
index 0230e7a9..a8f32c98 100644
--- a/src/tui/tui.zig
+++ b/src/tui/tui.zig
@@ -1135,9 +1135,9 @@ test "host watch closes initial race and reloads rename-over PDF while idle" {
const gpa = std.testing.allocator;
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
- const original = try pardes.pdf.makeOutlineTestPdf(gpa);
+ const original = try pardes.pdf.testFixture(gpa, "outline.pdf");
defer gpa.free(original);
- const replacement = try pardes.pdf.makeNoOutlineTestPdf(gpa);
+ const replacement = try pardes.pdf.testFixture(gpa, "offset-rotated.pdf");
defer gpa.free(replacement);
try tmp.dir.writeFile(io, .{ .sub_path = "live.pdf", .data = original });
try tmp.dir.writeFile(io, .{ .sub_path = "initial.pdf", .data = replacement });