diff/test: drop fmt package dependency
This commit is contained in:
parent
1e521f2136
commit
697c8faa67
@ -1,7 +1,6 @@
|
|||||||
package diff_test
|
package diff_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
@ -16,6 +15,7 @@ func TestDiff(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
testCases := []testCase{
|
testCases := []testCase{
|
||||||
|
|
||||||
{
|
{
|
||||||
[]string{},
|
[]string{},
|
||||||
[]string{},
|
[]string{},
|
||||||
@ -53,7 +53,7 @@ func TestDiff(t *testing.T) {
|
|||||||
output := diff.Diff(testCase.o, testCase.n)
|
output := diff.Diff(testCase.o, testCase.n)
|
||||||
if !reflect.DeepEqual(output, testCase.expect) {
|
if !reflect.DeepEqual(output, testCase.expect) {
|
||||||
t.Fail()
|
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