Skip to content

Expectation::toBeFalse ​

Member of Expectation

idl
Expectation.toBeFalse, $
  /_expect_failure

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

if ~(expectationValue) then begin
  ; passed
endif

Examples ​

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

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.