Skip to content

Expectation::toBeInfinite ​

Member of Expectation

idl
Expectation.toBeInfinite, $
  /_expect_failure

Verifies that the expectation value is positive or negative infinity. If the value is an array, every element must be infinite.

Examples ​

idl
(it.expects(!values.f_infinity)).toBeInfinite
(it.expects(5.0))._not_.toBeInfinite

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.