summaryrefslogtreecommitdiff
path: root/test/behaviour/modes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/behaviour/modes.zig')
-rw-r--r--test/behaviour/modes.zig13
1 files changed, 1 insertions, 12 deletions
diff --git a/test/behaviour/modes.zig b/test/behaviour/modes.zig
index ef39d912..e615920d 100644
--- a/test/behaviour/modes.zig
+++ b/test/behaviour/modes.zig
@@ -345,10 +345,9 @@ const Jumps = struct {
}
};
-test "modes: Ctrl-o keeps to the focused file (JumpScope file), A41 then A1, and leaves it only once it runs out that way; Ctrl-i mirrors it" {
+test "modes: Ctrl-o keeps to the focused file, A41 then A1, and leaves it only once it runs out that way; Ctrl-i mirrors it" {
var t = try Jumps.init("BABABA");
defer t.s.deinit();
- try std.testing.expect(std.mem.indexOf(u8, try t.s.read("/ctl"), "\nJumpScope file\n") != null);
// B81, B41 passed over, kept in their places: A has nothing older than
// A1, so the step after it is the nearest place of any file, B1.
try std.testing.expectEqualStrings("A41 A1 B1", try t.walk(.key, true));
@@ -372,16 +371,6 @@ test "modes: Ctrl-i retraces a run of Ctrl-o inside one file step for step, back
try std.testing.expectEqualStrings("A41 A1", try t.walk(.key, true));
}
-test "modes: with JumpScope all, Ctrl-o and Ctrl-i take every place in the order it was jumped to, and bare JumpScope is file again" {
- var t = try Jumps.init("ABABA");
- defer t.s.deinit();
- try t.s.write("/ctl", "JumpScope all\n");
- try std.testing.expectEqualStrings("B41 A41 B1 A1", try t.walk(.key, true));
- try std.testing.expectEqualStrings("B1 A41 B41 A81", try t.walk(.key, false));
- try t.s.write("/ctl", "JumpScope\n");
- try std.testing.expect(std.mem.indexOf(u8, try t.s.read("/ctl"), "\nJumpScope file\n") != null);
-}
-
test "modes: from a pane with no file, Ctrl-o and Ctrl-i step through every place" {
var t = try Jumps.init("OAOBO");
defer t.s.deinit();