Skip to content

Expectation::toHaveSameDimensions ​

Member of Expectation

idl
Expectation.toHaveSameDimensions, compare, $
  /_expect_failure

Verifies that the expectation value has the same dimensions as another value. Object references are not supported.

Examples ​

idl
(it.expects(findgen(3, 4))).toHaveSameDimensions, bytarr(3, 4)
(it.expects(findgen(3, 4)))._not_.toHaveSameDimensions, bytarr(4, 3)

Arguments ​

compare ​

requiredinputtype=any

Specify the value to compare dimensions against.

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.