diff options
Diffstat (limited to 'core/ninep/ctl.zig')
| -rw-r--r-- | core/ninep/ctl.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/ninep/ctl.zig b/core/ninep/ctl.zig index e47aec94..637999c2 100644 --- a/core/ninep/ctl.zig +++ b/core/ninep/ctl.zig @@ -1747,6 +1747,8 @@ test "a look whose pane is refused a place fails with that alone, not a missing // A screen with rows for one pane only. const p = try Pardes.init(gpa, .{ .tty_only = true, .cols = 80, .rows = 5 }); defer p.deinit(); + // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6). + p.settings.jumps = .@"new-pane"; while (p.nextEffect()) |_| {} _ = try p.setTestFile("x\n"); while (p.nextEffect()) |_| {} @@ -2126,6 +2128,8 @@ test "with no pane at all, the root look opens its file and the root exec runs i if (pardes.Term.ops == null) return error.SkipZigTest; // a command pane const p = try withFile(testing.allocator, "x\n"); defer p.deinit(); + // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6). + p.settings.jumps = .@"new-pane"; var tmp = testing.tmpDir(.{}); defer tmp.cleanup(); try tmp.dir.writeFile(testing.io, .{ .sub_path = "f.txt", .data = "file\n" }); |
