Skip to content

Expectation::toExist ​

Member of Expectation

idl
Expectation.toExist, $
  /_expect_failure

Verifies that the expectation value (a path, or array of paths) exists, whether it is a file or a directory.

Examples ​

idl
(it.expects(!dir)).toExist
(it.expects(file_which('plot.pro'))).toExist
(it.expects('missing_file.dat'))._not_.toExist

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.