mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-24 04:36:10 +03:00
terminal: test to ensure grapheme flag is set on row when resizing
This commit is contained in:
@ -4598,6 +4598,7 @@ test "PageList resize reflow less cols wrapped rows with graphemes" {
|
||||
const rac = offset.rowAndCell();
|
||||
const cells = offset.page.data.getCells(rac.row);
|
||||
try testing.expect(!rac.row.wrap);
|
||||
try testing.expect(rac.row.grapheme);
|
||||
try testing.expectEqual(@as(usize, 2), cells.len);
|
||||
try testing.expectEqual(@as(u21, 2), cells[0].content.codepoint);
|
||||
|
||||
@ -4619,6 +4620,7 @@ test "PageList resize reflow less cols wrapped rows with graphemes" {
|
||||
const rac = offset.rowAndCell();
|
||||
const cells = offset.page.data.getCells(rac.row);
|
||||
try testing.expect(!rac.row.wrap);
|
||||
try testing.expect(rac.row.grapheme);
|
||||
try testing.expectEqual(@as(usize, 2), cells.len);
|
||||
try testing.expectEqual(@as(u21, 2), cells[0].content.codepoint);
|
||||
|
||||
|
Reference in New Issue
Block a user