Skip to content

Commit

Permalink
fix(test): set correct type in comparison for TestFromValuesWithTabSe…
Browse files Browse the repository at this point in the history
…parator
  • Loading branch information
bashbunni committed Sep 25, 2024
1 parent e242987 commit 14927f0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions table/table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"reflect"
"testing"

"github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/x/ansi"
"github.com/charmbracelet/x/exp/golden"
)
Expand Down Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 14927f0

Please sign in to comment.