Expectation::toEndWith
Member of Expectation
idl
Expectation.toEndWith, suffix, $
/_expect_failure, $
/fold_caseVerifies that the expectation value ends with a suffix. For an array of strings, every element must end with the suffix.
Examples
idl
(it.expects('image.tif')).toEndWith, '.tif'
(it.expects('IMAGE.TIF')).toEndWith, '.tif', /fold_caseArguments
suffix
requiredinputtype=StringSpecify the string that the value should end with.
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.
fold_case
optionalinputtype=BooleanSet this keyword to ignore case.