assertk.assertions / doesNotContain

doesNotContain

fun <T> Assert<Array<T>>.doesNotContain(element: Any?): Unit

Platform and version requirements: Common

Asserts the array does not contain the expected element, using !in.

See Also

contains

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

Platform and version requirements: Common

Asserts the iterable does not contain the expected element, using !in.

See Also

contains

fun <K, V> Assert<Map<K, V>>.doesNotContain(key: K, value: V): Unit

Platform and version requirements: Common


fun <K, V> Assert<Map<K, V>>.doesNotContain(element: Pair<K, V>): Unit

Platform and version requirements: Common

Asserts the map does not contain the expected key-value pair.

See Also

contains

fun Assert<String>.doesNotContain(other: CharSequence, ignoreCase: Boolean = false): Unit

Platform and version requirements: Common

Asserts the string does not contain the specified string.

Parameters

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

@JvmName("byteArrayDoesNotContain") fun Assert<ByteArray>.doesNotContain(element: Byte): Unit

Asserts the ByteArray does not contain the expected element, using !in.

See Also

contains

@JvmName("intArrayDoesNotContain") fun Assert<IntArray>.doesNotContain(element: Int): Unit

Asserts the IntArray does not contain the expected element, using !in.

See Also

contains

@JvmName("shortArrayDoesNotContain") fun Assert<ShortArray>.doesNotContain(element: Short): Unit

Asserts the ShortArray does not contain the expected element, using !in.

See Also

contains

@JvmName("longArrayDoesNotContain") fun Assert<LongArray>.doesNotContain(element: Long): Unit

Asserts the LongArray does not contain the expected element, using !in.

See Also

contains

@JvmName("floatArrayDoesNotContain") fun Assert<FloatArray>.doesNotContain(element: Float): Unit

Asserts the FloatArray does not contain the expected element, using !in.

See Also

contains

@JvmName("doubleArrayDoesNotContain") fun Assert<DoubleArray>.doesNotContain(element: Double): Unit

Asserts the DoubleArray does not contain the expected element, using !in.

See Also

contains

@JvmName("charArrayDoesNotContain") fun Assert<CharArray>.doesNotContain(element: Char): Unit

Asserts the CharArray does not contain the expected element, using !in.

See Also

contains