IsAtMost asserts that the float is at most the supplied maximum.
(max float64)
| 33 | |
| 34 | // IsAtMost asserts that the float is at most the supplied maximum. |
| 35 | func (o OnFloat) IsAtMost(max float64) bool { |
| 36 | return o.Compare(o.value, "<=", max).Test(o.value <= max) |
| 37 | } |
| 38 | |
| 39 | // Equals asserts that the float equals v with ± tolerance. |
| 40 | func (o OnFloat) Equals(v, tolerance float64) bool { |