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