assertk / assertk.assertions / endsWith

endsWith

(common, jvm) fun Assert<String>.endsWith(other: String, ignoreCase: Boolean = false): Unit

Asserts the string ends with the expected string.

Parameters

ignoreCase - true to compare ignoring case, the default if false.

See Also

startsWith