Expectation::toStrictEqual
Member of Expectation
idl
Expectation.toStrictEqual, compare, $
/_expect_failureVerifies that an expectation value is equal to a compare value and also has the same type and dimensions. Unlike idl toEqual this does not treat 1 and 1b as equal and does not compare lists to arrays or hashes to dictionaries.
Nested lists, hashes, orderedhashes, dictionaries, and structures are compared recursively.
Examples
idl
(it.expects(1b)).toStrictEqual, 1b
(it.expects(1b))._not_.toStrictEqual, 1
(it.expects([1, 2]))._not_.toStrictEqual, list(1, 2)Arguments
compare
requiredinputtype=anySpecify a value to compare 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.