diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/panes.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/panes.zig b/test/panes.zig index 9e4886fb..aa54d483 100644 --- a/test/panes.zig +++ b/test/panes.zig @@ -1432,7 +1432,8 @@ test "file history owns bounded snapshot storage without per-edit bookkeeping al failing.fail_index = std.math.maxInt(usize); const before_redo = failing.alloc_index; panes.File.undoStep(p, pane, false); - try std.testing.expectEqual(before_redo + 2, failing.alloc_index); + // The snapshot's copy alone: the line index moves in place. + try std.testing.expectEqual(before_redo + 1, failing.alloc_index); try std.testing.expectEqual(pardes.memory.limits.undo_max, history.undo_len); try std.testing.expectEqual(@as(usize, 0), history.redo_len); } |
