Modified the error message for NotEqual

pull/206/head
Siva Gollapalli 2015-08-26 19:40:56 +05:30
parent 80b247df3c
commit b60ec447d6
1 changed files with 1 additions and 2 deletions

View File

@ -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