InEpsilon asserts that expected and actual have a relative error less than epsilon
(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{})
| 744 | |
| 745 | // InEpsilon asserts that expected and actual have a relative error less than epsilon |
| 746 | func (a *Assertions) InEpsilon(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) { |
| 747 | if h, ok := a.t.(tHelper); ok { |
| 748 | h.Helper() |
| 749 | } |
| 750 | InEpsilon(a.t, expected, actual, epsilon, msgAndArgs...) |
| 751 | } |
| 752 | |
| 753 | // InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices. |
| 754 | func (a *Assertions) InEpsilonSlice(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) { |