Expectation::toHaveSameDimensions
Member of Expectation
idl
Expectation.toHaveSameDimensions, compare, $
/_expect_failureVerifies 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=anySpecify the value to compare dimensions against.
Keywords
_expect_failure {#kw-_expect_failure}
optionalinputtype=BooleanIf the test fails for some reason, set this to force passing because we expected failure. This keyword is for internal use only.