mirror of https://github.com/stretchr/testify.git
assert.InEpsilonSlice: refactor
parent
f7fbc7da15
commit
7d383ba732
|
@ -1484,9 +1484,8 @@ 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, expectedSlice.Index(i).Interface(), actualSlice.Index(i).Interface(), epsilon)
|
if !InEpsilon(t, expectedSlice.Index(i).Interface(), actualSlice.Index(i).Interface(), epsilon) {
|
||||||
if !result {
|
return false
|
||||||
return result
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue