Skip to content

Expectation::toBeGreaterThanOrEqual ​

Member of Expectation

idl
Expectation.toBeGreaterThanOrEqual, compare, $
  /_expect_failure

Verifies that the expectation value is greater 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(5)).toBeGreaterThanOrEqual, 5
(it.expects([5, 6])).toBeGreaterThanOrEqual, 5

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.