Skip to content

Expectation::toEndWith ​

Member of Expectation

idl
Expectation.toEndWith, suffix, $
  /_expect_failure, $
  /fold_case

Verifies 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_case

Arguments ​

suffix ​

requiredinputtype=String

Specify the string that the value should end with.

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.

fold_case ​

optionalinputtype=Boolean

Set this keyword to ignore case.

Licensed under MIT.