Expectation::toHaveDimensions
Member of Expectation
idl
Expectation.toHaveDimensions, dims, $
/_expect_failureVerifies that the expectation value has exact dimensions (as returned by idl size(/dimensions)). Object references are not supported and a scalar has the dimensions 0.
Examples
idl
(it.expects(bytarr(512, 512, 3))).toHaveDimensions, [512, 512, 3]
(it.expects(findgen(5)))._not_.toHaveDimensions, [6]Arguments
dims
requiredinputtype=Int | Array<Int>Specify the expected dimensions.
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.