Expectation::toBeTrue
Member of Expectation
idl
Expectation.toBeTrue, $
/_expect_failureVerifies 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_.toBeTrueKeywords
_expect_failure {#kw-_expect_failure}
optionalinputtype=BooleanIf the test fails for some reason, set this to force passing because we expected failure. This keyword is for internal use only.