Skip to content

Expectation::toBeTypename ​

Member of Expectation

idl
Expectation.toBeTypename, type, $
  /_expect_failure

Verifies 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=String

Specify a typename that an expectation value should have.

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.