Add left scrolling test

This commit is contained in:
David Dworken 2023-02-11 09:10:45 -08:00
parent fea151261f
commit 8f59b801dd
No known key found for this signature in database

View File

@ -61,6 +61,8 @@ func TestHScoll(t *testing.T) {
testutils.CompareGoldens(t, table.View(), "unittestTable-truncatedTable-right2") testutils.CompareGoldens(t, table.View(), "unittestTable-truncatedTable-right2")
table.MoveRight(1) table.MoveRight(1)
testutils.CompareGoldens(t, table.View(), "unittestTable-truncatedTable-right3") testutils.CompareGoldens(t, table.View(), "unittestTable-truncatedTable-right3")
table.MoveLeft(1)
testutils.CompareGoldens(t, table.View(), "unittestTable-truncatedTable-right2")
} }
func deepEqual(a, b []Row) bool { func deepEqual(a, b []Row) bool {