mirror of https://github.com/stretchr/testify.git
Merge pull request #210 from jcamenisch/master
Fix param order in ObjectsAreEqualValues after type conversionpull/211/head
commit
7c2b1e5640
|
@ -54,7 +54,7 @@ func ObjectsAreEqualValues(expected, actual interface{}) bool {
|
|||
expectedValue := reflect.ValueOf(expected)
|
||||
if expectedValue.Type().ConvertibleTo(actualType) {
|
||||
// Attempt comparison after type conversion
|
||||
if reflect.DeepEqual(actual, expectedValue.Convert(actualType).Interface()) {
|
||||
if reflect.DeepEqual(expectedValue.Convert(actualType).Interface(), actual) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue