strikt-core / strikt.assertions / startsWith

startsWith

infix fun <T : CharSequence> Builder<T>.startsWith(expected: Char): Builder<T>

Asserts that the subject starts with the expected character.

infix fun <T : CharSequence> Builder<T>.startsWith(expected: CharSequence): Builder<T>

Asserts that the subject starts with the expected string.

infix fun <T : Path> Builder<T>.startsWith(other: Path): Builder<T>

Asserts that the subject starts with the provided path.

Parameters

other - the given path

See Also

Path.startsWith

infix fun <T : Path> Builder<T>.startsWith(other: String): Builder<T>

Asserts that the subject starts with the provided path.

Parameters

other - the given path string

See Also

Path.startsWith