assertContains
Asserts that the iterable contains the specified element, with an optional message.
Since Kotlin
1.5Asserts that the sequence contains the specified element, with an optional message.
Since Kotlin
1.5Asserts that the array contains the specified element, with an optional message.
Since Kotlin
1.5Asserts that the range contains the specified value, with an optional message.
Since Kotlin
1.5Asserts that the map contains the specified key, with an optional message.
Since Kotlin
1.5Asserts that the charSequence contains the specified char, with an optional message.
Since Kotlin
1.5Parameters
true
to ignore character case when comparing characters. By default false
.
Asserts that the charSequence contains the specified other char sequence as a substring, with an optional message.
Since Kotlin
1.5Parameters
true
to ignore character case when comparing strings. By default false
.
Asserts that the charSequence contains at least one match of the specified regular expression regex, with an optional message.