diff --git a/diff/diff_test.go b/diff/diff_test.go index 27f2910..c6272c1 100644 --- a/diff/diff_test.go +++ b/diff/diff_test.go @@ -1,7 +1,6 @@ package diff_test import ( - "fmt" "reflect" "testing" @@ -16,6 +15,7 @@ func TestDiff(t *testing.T) { } testCases := []testCase{ + { []string{}, []string{}, @@ -53,7 +53,7 @@ func TestDiff(t *testing.T) { output := diff.Diff(testCase.o, testCase.n) if !reflect.DeepEqual(output, testCase.expect) { t.Fail() - fmt.Printf("==EXPECTED==\n%#v\n==GOT==\n%#v\n", testCase.expect, output) + t.Errorf("==EXPECTED==\n%#v\n==GOT==\n%#v\n", testCase.expect, output) } }