Merge pull request #206 from sivagollapalli/issue_140

Display actual and expected values on NotEqual
pull/209/head
Mat Ryer 2015-08-26 15:14:49 +01:00
commit 6f1da3e279
1 changed files with 1 additions and 1 deletions

View File

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