diff options
Diffstat (limited to 'src/hunks.zig')
| -rw-r--r-- | src/hunks.zig | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/hunks.zig b/src/hunks.zig index ae7b5966..b30f09a6 100644 --- a/src/hunks.zig +++ b/src/hunks.zig @@ -715,7 +715,7 @@ test "a mailed patch keeps its headers, message and diffstat above its hunks" { try testing.expectEqualStrings("From 0123 Mon Sep 17 00:00:00 2001\nSubject: [PATCH] change x\n\nWhy it changed.\n---\n x.txt | 2 +-\n\nx.txt:1\n-a\n+b\n", result.content); } -test "DiffLook hunks: a .patch looked at opens its +Diff; Diff goes to the text and back; DiffLook text opens the text" { +test "a .patch looked at opens its +Diff, and Diff goes to the text and back" { const p = try Pardes.init(testing.allocator, .{ .tty_only = true }); defer p.deinit(); var tmp = testing.tmpDir(.{}); @@ -737,7 +737,6 @@ test "DiffLook hunks: a .patch looked at opens its +Diff; Diff goes to the text return n; } }; - try testing.expectEqual(pardes.config.Runtime.DiffLook.hunks, p.settings.diff_look); pardes.look.lookAt(p, 0, patch); try testing.expectEqual(@as(usize, 1), Count.of(p, hunks_path)); try testing.expectEqual(@as(usize, 0), Count.of(p, patch)); @@ -752,11 +751,6 @@ test "DiffLook hunks: a .patch looked at opens its +Diff; Diff goes to the text // Diff on the text: the +Diff again, refilled, not another. try testing.expect(p.executeBuiltinLine(raw, "Diff")); try testing.expectEqual(@as(usize, 1), Count.of(p, hunks_path)); - // DiffLook text: a look opens the text (here the pane already open). - try testing.expect(p.executeBuiltinLine(0, "DiffLook text")); - try p.removePane(raw, null); - pardes.look.lookAt(p, 0, patch); - try testing.expectEqual(@as(usize, 1), Count.of(p, patch)); } test "a hunk edited since, beside siblings with its signature's tail, is found in its own function" { |
