InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices.
(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{})
| 958 | |
| 959 | // InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices. |
| 960 | func InEpsilonSlicef(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) { |
| 961 | if h, ok := t.(tHelper); ok { |
| 962 | h.Helper() |
| 963 | } |
| 964 | if assert.InEpsilonSlicef(t, expected, actual, epsilon, msg, args...) { |
| 965 | return |
| 966 | } |
| 967 | t.FailNow() |
| 968 | } |
| 969 | |
| 970 | // InEpsilonf asserts that expected and actual have a relative error less than epsilon |
| 971 | func InEpsilonf(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) { |
no test coverage detected
searching dependent graphs…