mirror of https://github.com/stretchr/testify.git
Display actual and expected values on NotEqual
parent
efea42fa21
commit
80b247df3c
|
@ -492,7 +492,8 @@ func False(t TestingT, value bool, msgAndArgs ...interface{}) bool {
|
|||
func NotEqual(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool {
|
||||
|
||||
if ObjectsAreEqual(expected, actual) {
|
||||
return Fail(t, "Should not be equal", msgAndArgs...)
|
||||
return Fail(t, fmt.Sprintf("Not Equal: %#v (expected)\n"+
|
||||
" != %#v (actual)", actual, expected), msgAndArgs...)
|
||||
}
|
||||
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue