Expectation::toBeLessThanOrEqual
Member of Expectation
idl
Expectation.toBeLessThanOrEqual, compare, $
/_expect_failureVerifies that the expectation value is less than or equal to a number. If the value is an array, every element must pass. Negating the expectation means at least one element fails.
Examples
idl
(it.expects(4)).toBeLessThanOrEqual, 4
(it.expects([3, 4])).toBeLessThanOrEqual, 4Arguments
compare
requiredinputtype=NumberSpecify a numeric scalar to compare against.
Keywords
_expect_failure {#kw-_expect_failure}
optionalinputtype=BooleanIf the test fails for some reason, set this to force passing because we expected failure. This keyword is for internal use only.