postfix wip!

This commit is contained in:
Mike Farah 2020-09-20 22:47:57 +10:00
parent e32bc43c4e
commit e037c57725

View File

@ -50,7 +50,7 @@ func AssertResult(t *testing.T, expectedValue interface{}, actualValue interface
func AssertResultComplex(t *testing.T, expectedValue interface{}, actualValue interface{}) { func AssertResultComplex(t *testing.T, expectedValue interface{}, actualValue interface{}) {
t.Helper() t.Helper()
if !reflect.DeepEqual(expectedValue, actualValue) { if !reflect.DeepEqual(expectedValue, actualValue) {
t.Error("Expected <", expectedValue, "> but got <", actualValue, ">", fmt.Sprintf("%T", actualValue)) t.Error("\nExpected <", expectedValue, ">\nbut got <", actualValue, ">", fmt.Sprintf("%T", actualValue))
} }
} }