diff options
Diffstat (limited to 'test/terminal.zig')
| -rw-r--r-- | test/terminal.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/terminal.zig b/test/terminal.zig index 2873c278..5cf853e7 100644 --- a/test/terminal.zig +++ b/test/terminal.zig @@ -234,7 +234,7 @@ test "a position that cannot follow the output for want of memory is said on the pane.feedOutput(p, "three\r\n"); failing.fail_index = std.math.maxInt(usize); try std.testing.expect(failing.has_induced_failure); - try std.testing.expectEqualStrings(panes.positions_lost, pane.msg[0..pane.msg_len]); + try std.testing.expectEqualStrings(panes.positions_lost, p.messages.saidBy(pane)); const logged = p.messages.at(p.messages.len -| 1) orelse return error.NothingLogged; try std.testing.expectEqualStrings(panes.positions_lost, logged.slice()); } @@ -270,7 +270,7 @@ test "rows asked for after a pane's cached rows were dropped, before the sweep, test "terminal Filter keys indexed truecolor OSC and background-only cells through the theme" { const testing = std.testing; // Raw index assertions require a theme that inherits the ANSI palette. - const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme helix\n", .tty_only = true, .cols = 18, .rows = 6 }); + const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme helix\n", .tty_only = true, .cols = 18, .rows = 7 }); defer p.deinit(); while (p.nextEffect()) |_| {} const pane = p.panes[0].?; |
