assertk / assertk.assertions / doesNotContain

doesNotContain

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

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

See Also

contains

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

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

See Also

contains

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

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

See Also

contains

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

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

See Also

contains

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

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

See Also

contains

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

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

See Also

contains

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

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

See Also

contains

(common, jvm) fun Assert<Array<*>>.doesNotContain(element: Any?): Unit

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

See Also

contains

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

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

See Also

contains

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

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

See Also

contains

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

Asserts the string does not contain the specified string.

Parameters

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

(common, jvm) fun Assert<String>.doesNotContain(vararg expected: CharSequence, ignoreCase: Boolean = false): Unit

Asserts the string does not contain the specified string(s).

Parameters

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

(common, jvm) fun Assert<String>.doesNotContain(expected: Iterable<CharSequence>, ignoreCase: Boolean = false): Unit

Asserts the string does not contain the specified strings.

Parameters

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