mirror of https://github.com/stretchr/testify.git
assert.InEpsilonSlice: fix order of expected vs actual (#1231)
parent
8fd5aae061
commit
f7fbc7da15
|
@ -1484,7 +1484,7 @@ func InEpsilonSlice(t TestingT, expected, actual interface{}, epsilon float64, m
|
|||
}
|
||||
|
||||
for i := 0; i < expectedLen; i++ {
|
||||
result := InEpsilon(t, actualSlice.Index(i).Interface(), expectedSlice.Index(i).Interface(), epsilon)
|
||||
result := InEpsilon(t, expectedSlice.Index(i).Interface(), actualSlice.Index(i).Interface(), epsilon)
|
||||
if !result {
|
||||
return result
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue