Skip to content

Expectation::toBeTrue ​

Member of Expectation

idl
Expectation.toBeTrue, $
  /_expect_failure

Verifies that the expectation value is truthy by using an if statement like this:

if (expectationValue) then begin
  ; passed
endif

Examples ​

idl
(it.expects(!true)).toBeTrue
(it.expects(!false))._not_.toBeTrue

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.