chore: add emoji count test

This commit is contained in:
Jan De Dobbeleer 2024-07-30 14:58:00 +02:00 committed by Jan De Dobbeleer
parent a096a40fe6
commit e8d653b2ed

View file

@ -243,6 +243,12 @@ func TestWriteLength(t *testing.T) {
Input string
Colors *color.Set
}{
{
Case: "Emoji",
Input: " ⏰ ",
Expected: 4,
Colors: &color.Set{Foreground: "black", Background: color.ParentBackground},
},
{
Case: "Bold",
Input: "<b>test</b>",