diff/test: drop fmt package dependency
This commit is contained in:
parent
1e521f2136
commit
697c8faa67
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user