From 697c8faa671a742eaf84ddb205874ba8d5c15ec0 Mon Sep 17 00:00:00 2001 From: mappu Date: Tue, 11 Jul 2017 18:25:38 +1200 Subject: [PATCH] diff/test: drop fmt package dependency --- diff/diff_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } }