IsAtLeast asserts that the float is at least the supplied minimum.
(min float64)
| 28 | |
| 29 | // IsAtLeast asserts that the float is at least the supplied minimum. |
| 30 | func (o OnFloat) IsAtLeast(min float64) bool { |
| 31 | return o.Compare(o.value, ">=", min).Test(o.value >= min) |
| 32 | } |
| 33 | |
| 34 | // IsAtMost asserts that the float is at most the supplied maximum. |
| 35 | func (o OnFloat) IsAtMost(max float64) bool { |