contains

fun Assert<Array<*>>.contains(element: Any?)

Asserts the array contains the expected element, using in.

See also


fun Assert<CharSequence>.contains(expected: CharSequence, ignoreCase: Boolean = false)

Asserts the char sequence contains the expected subsequence.

Parameters

ignoreCase

true to compare ignoring case, the default if false.


fun Assert<CharSequence>.contains(vararg expected: CharSequence, ignoreCase: Boolean = false)

Asserts the char sequence contains the expected subsequence(s).

Parameters

ignoreCase

true to compare ignoring case, the default if false.


fun Assert<CharSequence>.contains(expected: Iterable<CharSequence>, ignoreCase: Boolean = false)

Asserts the char sequence contains the expected char sequences.

Parameters

ignoreCase

true to compare ignoring case, the default if false.


fun Assert<Iterable<*>>.contains(element: Any?)

Asserts the iterable contains the expected element, using in.

See also


fun <K, V> Assert<Map<K, V>>.contains(key: K, value: V)
fun <K, V> Assert<Map<K, V>>.contains(element: Pair<K, V>)

Asserts the map contains the expected key-value pair.

See also


fun Assert<Sequence<*>>.contains(element: Any?)

Asserts the sequence contains the expected element, using in.

See also