Testing module

starts_with

procedureextensionsince 0.30.0Source

A string begins with prefix; an array begins with the elements of the array prefix.

Example↗
assert_that("hello", starts_with("he"));
starts_with :: (prefix: $T) -> Matcher

A string begins with prefix; an array begins with the elements of the array prefix.

Parameters

prefix: $T
the text or elements it must begin with.

Returns

Example↗
assert_that("hello", starts_with("he"));

See also