A string ends with suffix; an array ends with the elements of the array suffix.
assert_that("hello", ends_with("llo"));- suffix: the text or elements it must end with.
ends_with :: (suffix: $T) -> Matcher
A string ends with suffix; an array ends with the elements of the array suffix.
Parameters
- suffix: $T
- the text or elements it must end with.
Returns
assert_that("hello", ends_with("llo"));