mirror of
https://github.com/walles/moar.git
synced 2024-09-11 12:15:43 +03:00
Fix tests in twin/screen_test.go
This commit is contained in:
parent
3f1457aacb
commit
6f2691ca10
@ -78,7 +78,7 @@ func TestRenderLineEmpty(t *testing.T) {
|
||||
|
||||
rendered, count := renderLine(row)
|
||||
assert.Equal(t, count, 0)
|
||||
assert.Equal(t, rendered, "")
|
||||
assert.Equal(t, rendered, "\x1b[m\x1b[K")
|
||||
}
|
||||
|
||||
func TestRenderLineLastReversed(t *testing.T) {
|
||||
@ -152,7 +152,7 @@ func TestRenderLineOnlyTrailingSpaces(t *testing.T) {
|
||||
|
||||
rendered, count := renderLine(row)
|
||||
assert.Equal(t, count, 0)
|
||||
assert.Equal(t, rendered, "")
|
||||
assert.Equal(t, rendered, "\x1b[m\x1b[K")
|
||||
}
|
||||
|
||||
func TestRenderLineLastReversedSpaces(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user