strikt-core / strikt.assertions / endsWith

endsWith

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

Asserts that the subject ends with the expected character.

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

Asserts that the subject ends with the expected string.

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

Asserts that the subject end with the provided path.

Parameters

other - the given path

See Also

Path.endsWith

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

Asserts that the subject end with the provided path string.

Parameters

other - the given path string

See Also

Path.endsWith