summaryrefslogtreecommitdiff
path: root/test/output.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/output.zig')
-rw-r--r--test/output.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/output.zig b/test/output.zig
index a8a1f239..38e8ba0d 100644
--- a/test/output.zig
+++ b/test/output.zig
@@ -389,7 +389,7 @@ test "Mini asks for no watch on its pane" {
try std.testing.expect(id != 0);
try std.testing.expect(p.executeBuiltinLine(id, "Mini build.zig"));
while (p.nextEffect()) |effect| switch (effect) {
- .watch => |watch| try std.testing.expect(watch.pane != id),
+ .watch => |watch| try std.testing.expect(watch.pane.index() != id),
else => {},
};
}
@@ -414,7 +414,7 @@ test "Mini dump preserves its exact virtual snapshot and body writes detach colo
try std.testing.expectEqualSlices(u8, before.mini.?.colors, mini.file.?.mini.?.colors);
try std.testing.expect(before.content.ptr != mini.file.?.content.ptr);
while (restored.nextEffect()) |effect| switch (effect) {
- .watch => |watch| try std.testing.expect(watch.pane != restored.view().active),
+ .watch => |watch| try std.testing.expect(watch.pane.index() != restored.view().active),
else => {},
};
var body_buf: [128]u8 = undefined;
@@ -534,7 +534,7 @@ test "Config with no startup file opens a pane of its name, and Save makes its d
try std.testing.expectError(error.FileNotFound, tmp.dir.statFile(std.testing.io, "pardes", .{}));
// Save's effect, as a host performs it.
try std.testing.expect(p.executeBuiltinLine(opened, "Save"));
- p.perform(.{ .save_file = .{ .pane = @intCast(opened) } });
+ p.perform(.{ .save_file = .{ .pane = .at(opened) } });
const made = try tmp.dir.statFile(std.testing.io, "pardes", .{});
try std.testing.expectEqual(std.Io.File.Kind.directory, made.kind);
}