Testing module

ends_with

procedureextensionsince 0.30.0Source

A string ends with suffix; an array ends with the elements of the array suffix.

Example↗
assert_that("hello", ends_with("llo"));
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

Example↗
assert_that("hello", ends_with("llo"));

See also