Skip to content

Expectation::toBeDirectory ​

Member of Expectation

idl
Expectation.toBeDirectory, $
  /_expect_failure

Verifies that the expectation value (a path, or array of paths) is an existing directory.

Examples ​

idl
(it.expects(!dir)).toBeDirectory
(it.expects(file_which('plot.pro')))._not_.toBeDirectory

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.