From 14927f0b946d5d677a58930ca0d7c84a445a5ba0 Mon Sep 17 00:00:00 2001 From: bashbunni Date: Tue, 24 Sep 2024 17:02:26 -0700 Subject: [PATCH] fix(test): set correct type in comparison for TestFromValuesWithTabSeparator --- table/table_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/table/table_test.go b/table/table_test.go index 2b17b2d9..0b52b947 100644 --- a/table/table_test.go +++ b/table/table_test.go @@ -4,7 +4,6 @@ import ( "reflect" "testing" - "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/x/ansi" "github.com/charmbracelet/x/exp/golden" ) @@ -76,12 +75,12 @@ func TestFromValuesWithTabSeparator(t *testing.T) { t.Fatalf("expect table to have 2 rows but it has %d", len(table.rows)) } - expect := []Row{ + expect := [][]string{ {"foo1.", "bar1"}, {"foo,bar,baz", "bar,2"}, } if !reflect.DeepEqual(table.rows, expect) { - t.Fatal("table rows is not equal to the input") + t.Fatalf("table rows is not equal to the input. got: %#v, want %#v", table.rows, expect) } }