Skip to content

Expectation::toBeFile ​

Member of Expectation

idl
Expectation.toBeFile, $
  /_expect_failure

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

Examples ​

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

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.