mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
Fix Bengali test due to wider grapheme
This commit is contained in:
@@ -1895,7 +1895,7 @@ test "shape Bengali ligatures with out of order vowels" {
|
||||
try testing.expectEqual(@as(u16, 0), cells[0].x);
|
||||
try testing.expectEqual(@as(u16, 0), cells[1].x);
|
||||
// See the giant "We need to reset the `cell_offset`" comment, but here
|
||||
// we should technically have the rest of these be `x` of 1, but that
|
||||
// we should technically have the rest of these be `x` of 2, but that
|
||||
// would require going back in the stream to adjust past cells, and
|
||||
// we don't take on that complexity.
|
||||
try testing.expectEqual(@as(u16, 0), cells[2].x);
|
||||
|
||||
@@ -1447,12 +1447,12 @@ test "shape Bengali ligatures with out of order vowels" {
|
||||
|
||||
// Whereas CoreText puts everything all into the first cell (see the
|
||||
// corresponding test), HarfBuzz splits into two clusters.
|
||||
try testing.expectEqual(@as(u16, 1), cells[2].x);
|
||||
try testing.expectEqual(@as(u16, 1), cells[3].x);
|
||||
try testing.expectEqual(@as(u16, 1), cells[4].x);
|
||||
try testing.expectEqual(@as(u16, 1), cells[5].x);
|
||||
try testing.expectEqual(@as(u16, 1), cells[6].x);
|
||||
try testing.expectEqual(@as(u16, 1), cells[7].x);
|
||||
try testing.expectEqual(@as(u16, 2), cells[2].x);
|
||||
try testing.expectEqual(@as(u16, 2), cells[3].x);
|
||||
try testing.expectEqual(@as(u16, 2), cells[4].x);
|
||||
try testing.expectEqual(@as(u16, 2), cells[5].x);
|
||||
try testing.expectEqual(@as(u16, 2), cells[6].x);
|
||||
try testing.expectEqual(@as(u16, 2), cells[7].x);
|
||||
|
||||
// The vowel sign E renders before the SSA:
|
||||
try testing.expect(cells[2].x_offset < cells[3].x_offset);
|
||||
|
||||
Reference in New Issue
Block a user