mirror of https://github.com/stretchr/testify.git
Merge pull request #205 from sivagollapalli/issue_185
FIX# EqualError error output swaps the actual and expected valuespull/206/head
commit
efea42fa21
|
@ -239,7 +239,7 @@ func Equal(t TestingT, expected, actual interface{}, msgAndArgs ...interface{})
|
|||
|
||||
if !ObjectsAreEqual(expected, actual) {
|
||||
return Fail(t, fmt.Sprintf("Not equal: %#v (expected)\n"+
|
||||
" != %#v (actual)", expected, actual), msgAndArgs...)
|
||||
" != %#v (actual)", actual, expected), msgAndArgs...)
|
||||
}
|
||||
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue