diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-23 10:51:51 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-23 17:10:58 -0300 |
| commit | 7b743fcc7d568f13512a59089c5214bb6fa3282f (patch) | |
| tree | ab133f70ded7b9b415115345adfc6ff043117b03 /test/panes.zig | |
| parent | b8f076b63d6fcbb01539d5541520a32bccc0e219 (diff) | |
| download | pardes-7b743fcc7d568f13512a59089c5214bb6fa3282f.tar.gz pardes-7b743fcc7d568f13512a59089c5214bb6fa3282f.zip | |
Audit (LSP, PDF): one client dispatch, docParams, renameEdits in one loop, std.c externs; one whole-page render, openBytes only
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/panes.zig')
| -rw-r--r-- | test/panes.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/panes.zig b/test/panes.zig index 1460b355..1b1b3eea 100644 --- a/test/panes.zig +++ b/test/panes.zig @@ -3421,7 +3421,9 @@ const PdfTests = struct { test "PDF word probe owns quads and text without a selection object" { if (comptime !enabled) return; - var document = try Document.open("docs/design.pdf"); + const bytes = try std.Io.Dir.cwd().readFileAlloc(std.testing.io, "docs/design.pdf", std.testing.allocator, .unlimited); + defer std.testing.allocator.free(bytes); + var document = try Document.openBytes(bytes); defer document.deinit(); var found = try document.search(std.testing.allocator, 0, "Pardes"); defer found.deinit(std.testing.allocator); |
