Expectation::toBeTypename
Member of Expectation
idl
Expectation.toBeTypename, type, $
/_expect_failureVerifies that the typename on an expectation value matches the specific name. This uses the idl typename() function behind the scenes.
Examples
idl
(it.expects('some string')).toBeTypename, 'string'
(it.expects(42)).toBeTypename, 'long'Arguments
type
requiredinputtype=StringSpecify a typename that an expectation value should have.
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.