Skip to content

Commit

Permalink
[shaping/test] do not reassign text input, closes #136
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitkugler authored and whereswaldon committed Mar 2, 2024
1 parent deb5cd1 commit abd78ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shaping/wrapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2621,7 +2621,7 @@ func TestGraphemeBreakLigature(t *testing.T) {
simpleGlyph(12), // l
simpleGlyph(13), // e
)
shapedText1 = Output{
shapedText := Output{
Advance: fixed.I(10 * len(gls)),
Runes: Range{Count: len([]rune(text1))},
Glyphs: gls,
Expand All @@ -2636,7 +2636,7 @@ func TestGraphemeBreakLigature(t *testing.T) {
},
}
var w LineWrapper
lines, _ := w.WrapParagraph(WrapConfig{BreakPolicy: Always}, 90, []rune(text1), NewSliceIterator([]Output{shapedText1}))
lines, _ := w.WrapParagraph(WrapConfig{BreakPolicy: Always}, 90, []rune(text1), NewSliceIterator([]Output{shapedText}))
if L := lines[0][0].Runes.Count; L != 10 {
t.Errorf("invalid break with ligature %d", L)
}
Expand Down

0 comments on commit abd78ec

Please sign in to comment.