diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-03 17:27:00 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-03 17:29:08 -0300 |
| commit | e5b9badb0942f5269190dffdc745169a7aba0391 (patch) | |
| tree | 8364ce4bfbbe7f35a23fa62eb03f3efc0b3b97fe /test/behaviour/look_and_exec.zig | |
| parent | d6694f29be417ccc568b2f7c20fe8d61b085fda3 (diff) | |
| download | pardes-e5b9badb0942f5269190dffdc745169a7aba0391.tar.gz pardes-e5b9badb0942f5269190dffdc745169a7aba0391.zip | |
test: the pdf area's behavioural tests skip in a build without PDFs (-Dmupdf=false), as the old ones did: Session.lookFile of a .pdf skips the test when /commands has no PdfTint (seven failed there before, now eight skip); and a look at a page past the last of a PDF that is not open checks its miss in the log (other.pdf has no page 999), not /index alone; checked to fail against a break (Pdf.openPane's NoSuchPage answered with no miss), which passed the test before
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/behaviour/look_and_exec.zig')
| -rw-r--r-- | test/behaviour/look_and_exec.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/behaviour/look_and_exec.zig b/test/behaviour/look_and_exec.zig index a6f28960..83ade2fc 100644 --- a/test/behaviour/look_and_exec.zig +++ b/test/behaviour/look_and_exec.zig @@ -106,6 +106,7 @@ test "look-and-exec: a look at a PDF's page past its last is a miss, never the l const index = try s.read("/index"); _ = try s.refused(look, s.at("{s}/other.pdf:999\n", .{dir})); try s.expect("/index", index); + try std.testing.expect(std.mem.indexOf(u8, try s.read("/log"), "other.pdf has no page 999") != null); } test "look-and-exec: a +PdfSections row's first number is the page: a section not there, or on another page, is a miss said" { |
