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{})
| 383 | |
| 384 | // InEpsilonf asserts that expected and actual have a relative error less than epsilon |
| 385 | func InEpsilonf(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool { |
| 386 | if h, ok := t.(tHelper); ok { |
| 387 | h.Helper() |
| 388 | } |
| 389 | return InEpsilon(t, expected, actual, epsilon, append([]interface{}{msg}, args...)...) |
| 390 | } |
| 391 | |
| 392 | // InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices. |
| 393 | func InEpsilonSlicef(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool { |
no test coverage detected