Skip to content

Expectation::toBeAValidObject ​

Member of Expectation

idl
Expectation.toBeAValidObject, $
  /_expect_failure

Verifies that the expectation value is an object by using the idl obj_valid() function.

Examples ​

idl
p = plot(/buffer, /test)
(it.expects(p)).toBeAValidObject
(it.expects(42))._not_.toBeAValidObject

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.