summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/panes.zig2
-rw-r--r--test/pdf.zig4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/panes.zig b/test/panes.zig
index f85daab3..160292a8 100644
--- a/test/panes.zig
+++ b/test/panes.zig
@@ -1320,7 +1320,7 @@ test "a prompt that cannot be opened leaves the open one as it was" {
const pane = try p.setTestFile("one\n");
p.startPrompt(pane, &pane.body, .{ .search = config.search_marker });
p.update(.{ .key = .{ .cp = 'p', .text = "prior" } });
- pane.body.normal = .{ .count = 9, .prefix = .goto };
+ pane.body.normal = .{ .count = 9, .prefix = .goto_prefix };
const previous_normal = pane.body.normal;
_ = p.scratch.reset(.free_all);
failing.fail_index = failing.alloc_index;
diff --git a/test/pdf.zig b/test/pdf.zig
index 655e046a..e4993bfb 100644
--- a/test/pdf.zig
+++ b/test/pdf.zig
@@ -635,7 +635,7 @@ test "MuPDF pane renders, navigates, searches, and round-trips its page" {
p.update(.{ .key = .{ .cp = '4' } });
p.update(.{ .key = .{ .cp = 'g' } });
p.update(.{ .key = .{ .cp = '?' } });
- try std.testing.expectEqual(.none, pane.body.normal.prefix);
+ try std.testing.expectEqual(null, pane.body.normal.prefix);
try std.testing.expectEqual(@as(u32, 0), pane.body.normal.count);
p.update(.{ .key = .{ .cp = 'j' } });
try std.testing.expectEqual(row_scroll, pane.pdf.?.document_scroll_y);
@@ -1196,7 +1196,7 @@ test "Escape cancels PDF chrome in place, then leaves the pane; Shift-Escape lea
try std.testing.expectEqual(page_before, pv.page);
try std.testing.expectEqual(scroll_before, pv.document_scroll_y);
try std.testing.expectEqual(@as(u32, 0), pane.body.normal.count);
- try std.testing.expectEqual(.none, pane.body.normal.prefix);
+ try std.testing.expectEqual(null, pane.body.normal.prefix);
// With nothing left to drop, Escape goes back a pane as anywhere else,
// and leaves the document as it found it.
p.update(.{ .key = .{ .cp = Key.escape } });