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

This commit is contained in:
Olivier Mengué 2023-10-10 03:48:32 +02:00
parent 8fd5aae061
commit f7fbc7da15

View File

@ -1484,7 +1484,7 @@ func InEpsilonSlice(t TestingT, expected, actual interface{}, epsilon float64, m
} }
for i := 0; i < expectedLen; i++ { 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 { if !result {
return result return result
} }