mirror of https://github.com/stretchr/testify.git
Merge pull request #206 from sivagollapalli/issue_140
Display actual and expected values on NotEqualpull/209/head
commit
6f1da3e279
|
@ -492,7 +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, "Should not be equal", msgAndArgs...)
|
||||
return Fail(t, fmt.Sprintf("Should not be: %#v\n", actual), msgAndArgs...)
|
||||
}
|
||||
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue