InEpsilonf asserts that expected and actual have a relative error less than epsilon
(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{})
| 295 | |
| 296 | // InEpsilonf asserts that expected and actual have a relative error less than epsilon |
| 297 | func InEpsilonf(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool { |
| 298 | if h, ok := t.(tHelper); ok { |
| 299 | h.Helper() |
| 300 | } |
| 301 | return InEpsilon(t, expected, actual, epsilon, append([]interface{}{msg}, args...)...) |
| 302 | } |
| 303 | |
| 304 | // InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices. |
| 305 | func InEpsilonSlicef(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool { |
no test coverage detected
searching dependent graphs…