assert.InEpsilonSlice: fix order of expected vs actual (#1231)

pull/1483/head
Olivier Mengué 2023-10-10 03:48:32 +02:00
parent 8fd5aae061
commit f7fbc7da15
1 changed files with 1 additions and 1 deletions

View File

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