mirror of
https://github.com/stretchr/testify.git
synced 2025-07-11 04:58:05 +00:00
Modified the error message for NotEqual
This commit is contained in:
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 {
|
||||
|
||||
if ObjectsAreEqual(expected, actual) {
|
||||
return Fail(t, fmt.Sprintf("Not Equal: %#v (expected)\n"+
|
||||
" != %#v (actual)", actual, expected), msgAndArgs...)
|
||||
return Fail(t, fmt.Sprintf("Should not be: %#v\n", actual), msgAndArgs...)
|
||||
}
|
||||
|
||||
return true
|
||||
|
Loading…
x
Reference in New Issue
Block a user