mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
refactor(test): update error message for TestSetCursor
This commit is contained in:
+2
-3
@@ -110,7 +110,7 @@ func TestSetCursor(t *testing.T) {
|
||||
)
|
||||
table.SetCursor(tc.cursor)
|
||||
if table.cursor != tc.expected {
|
||||
t.Fatalf("cursor out of range. Should be %d, got: %d\n%s", tc.expected, table.cursor, table.View())
|
||||
t.Fatalf("wrong cursor value, should be %d, got: %d\n%s", tc.expected, table.cursor, table.View())
|
||||
}
|
||||
})
|
||||
t.Run(tc.name+"/ table with headers", func(t *testing.T) {
|
||||
@@ -125,9 +125,8 @@ func TestSetCursor(t *testing.T) {
|
||||
}),
|
||||
)
|
||||
table.SetCursor(tc.cursor)
|
||||
t.Fatalf("%#v\n%s", table.SelectedRow(), table.View())
|
||||
if table.cursor != tc.expected {
|
||||
t.Fatalf("cursor out of range. Should be %d, got: %d\n%s", tc.expected, table.cursor, table.View())
|
||||
t.Fatalf("wrong cursor value, should be %d, got: %d\n%s", tc.expected, table.cursor, table.View())
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user