assertContains
fun <T : Comparable<T>> assertContains(
range: ClosedRange<T>,
value: T,
message: String? = null
): Unit
(source)
@ExperimentalStdlibApi fun <T : Comparable<T>> assertContains(
range: OpenEndRange<T>,
value: T,
message: String? = null
): Unit
(source)
Asserts that the charSequence contains the specified char, with an optional message.
Parameters
ignoreCase
- true
to ignore character case when comparing characters. By default false
.
fun assertContains(
charSequence: CharSequence,
other: CharSequence,
ignoreCase: Boolean = false,
message: String? = null
): Unit
(source)
Asserts that the charSequence contains the specified other char sequence as a substring, with an optional message.
Parameters
ignoreCase
- true
to ignore character case when comparing strings. By default false
.
fun assertContains(
charSequence: CharSequence,
regex: Regex,
message: String? = null
): Unit
(source)
Asserts that the charSequence contains at least one match of the specified regular expression regex, with an optional message.