Skip to content

Expectation::toBeLessThan ​

Member of Expectation

idl
Expectation.toBeLessThan, compare, $
  /_expect_failure

Verifies that the expectation value is less than a number. If the value is an array, every element must be less. Negating the expectation means at least one element is not.

Examples ​

idl
(it.expects(3)).toBeLessThan, 4
(it.expects([3, 4]))._not_.toBeLessThan, 4

Arguments ​

compare ​

requiredinputtype=Number

Specify a numeric scalar to compare against.

Keywords ​

_expect_failure {#kw-_expect_failure} ​

optionalinputtype=Boolean

If the test fails for some reason, set this to force passing because we expected failure. This keyword is for internal use only.

Licensed under MIT.