forked from mirror/go-json
reverted helper
This commit is contained in:
parent
e94f0cd362
commit
6a81ba12dd
|
@ -11,7 +11,7 @@ func assertErr(t *testing.T, err error) {
|
|||
|
||||
func assertEq(t *testing.T, msg string, exp interface{}, act interface{}) {
|
||||
t.Helper()
|
||||
if exp != act && !(exp == nil && act == nil) {
|
||||
if exp != act {
|
||||
t.Fatalf("failed to test for %s. exp=[%v] but act=[%v]", msg, exp, act)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue