summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/panes.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/panes.zig b/test/panes.zig
index e2cd85dc..0379a03d 100644
--- a/test/panes.zig
+++ b/test/panes.zig
@@ -2661,6 +2661,9 @@ const FileTests = struct {
try std.testing.expectEqual(text.len, byteAtDisplay(text, 5));
try std.testing.expectEqual(@as(usize, 3), rawDisplayCol(text, 5));
try std.testing.expectEqual(@as(usize, 5), rawAtDisplay(text, 3));
+ // At the line's end and past it (virtual columns, one byte each).
+ try std.testing.expectEqual(text.len, rawAtDisplay(text, 5));
+ try std.testing.expectEqual(text.len + 2, rawAtDisplay(text, 7));
try std.testing.expectEqual(@as(usize, 2), graphemeDisplayWidth("👩\u{200d}🚀"));
}