Skip to content

Expectation::toBeFinite ​

Member of Expectation

idl
Expectation.toBeFinite, $
  /_expect_failure

Verifies that the expectation value is finite (not NaN and not infinity). If the value is an array, every element must be finite. Integers are always finite.

Examples ​

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

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.