testify
testify copied to clipboard
Misplaced "expected" and "actual" Arguments Inside InEpsilonSlice
Both InEpsilon and InEpsilonSlice has parameter expected before actual
func InEpsilon(t TestingT, expected, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool
func InEpsilonSlice(t TestingT, expected, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool
However, InEpsilon's call inside InEpsilonSlice has the arguments misplaced:
result := InEpsilon(t, actualSlice.Index(i).Interface(), expectedSlice.Index(i).Interface(), epsilon)