1
1
mirror of https://github.com/walles/moar.git synced 2024-09-11 12:15:43 +03:00

Pass another mutation test

This commit is contained in:
Johan Walles 2023-10-10 20:46:53 +02:00
parent 8478883821
commit 99de54c510

View File

@ -73,6 +73,14 @@ func TestRenderLine(t *testing.T) {
strings.ReplaceAll(reset+reversed+"<"+dim+notReversed+"f"+reset+clearToEol, "", "ESC"))
}
func TestRenderLineEmpty(t *testing.T) {
row := []Cell{}
rendered, count := renderLine(row)
assert.Equal(t, count, 0)
assert.Equal(t, rendered, "")
}
func TestRenderLineLastReversed(t *testing.T) {
row := []Cell{
{