assertk / assertk.assertions / containsOnly

containsOnly

(common, jvm) fun Assert<ByteArray>.containsOnly(vararg elements: Byte): Unit

Asserts the ByteArray contains only the expected elements, in any order.

See Also

containsNone

containsExactly

containsAll

(common, jvm) fun Assert<IntArray>.containsOnly(vararg elements: Int): Unit

Asserts the IntArray contains only the expected elements, in any order.

See Also

containsNone

containsExactly

containsAll

(common, jvm) fun Assert<ShortArray>.containsOnly(vararg elements: Short): Unit

Asserts the ShortArray contains only the expected elements, in any order.

See Also

containsNone

containsExactly

containsAll

(common, jvm) fun Assert<LongArray>.containsOnly(vararg elements: Long): Unit

Asserts the LongArray contains only the expected elements, in any order.

See Also

containsNone

containsExactly

containsAll

(common, jvm) fun Assert<FloatArray>.containsOnly(vararg elements: Float): Unit

Asserts the FloatArray contains only the expected elements, in any order.

See Also

containsNone

containsExactly

containsAll

(common, jvm) fun Assert<DoubleArray>.containsOnly(vararg elements: Double): Unit

Asserts the DoubleArray contains only the expected elements, in any order.

See Also

containsNone

containsExactly

containsAll

(common, jvm) fun Assert<CharArray>.containsOnly(vararg elements: Char): Unit

Asserts the CharArray contains only the expected elements, in any order.

See Also

containsNone

containsExactly

containsAll

(common, jvm) fun Assert<Array<*>>.containsOnly(vararg elements: Any?): Unit

Asserts the array contains only the expected elements, in any order.

See Also

containsNone

containsExactly

containsAll

(common, jvm) fun Assert<Iterable<*>>.containsOnly(vararg elements: Any?): Unit

Asserts the collection contains only the expected elements, in any order.

See Also

containsNone

containsExactly

containsAll

(common, jvm) fun <K, V> Assert<Map<K, V>>.containsOnly(vararg elements: Pair<K, V>): Unit

Asserts the map contains only the expected elements. There must not be any extra elements.

See Also

containsAll