InEpsilon asserts that expected and actual have a relative error less than epsilon
(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{})
| 756 | |
| 757 | // InEpsilon asserts that expected and actual have a relative error less than epsilon |
| 758 | func (a *Assertions) InEpsilon(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool { |
| 759 | if h, ok := a.t.(tHelper); ok { |
| 760 | h.Helper() |
| 761 | } |
| 762 | return InEpsilon(a.t, expected, actual, epsilon, msgAndArgs...) |
| 763 | } |
| 764 | |
| 765 | // InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices. |
| 766 | func (a *Assertions) InEpsilonSlice(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool { |