assertk / assertk.assertions / containsExactly

containsExactly

(common, jvm) @JvmName("byteArrayContainsExactly") fun Assert<ByteArray>.containsExactly(vararg elements: Byte): Unit

Asserts the ByteArray contains exactly the expected elements. They must be in the same order and there must not be any extra elements.

See Also

containsAll

(common, jvm) @JvmName("intArrayContainsExactly") fun Assert<IntArray>.containsExactly(vararg elements: Int): Unit

Asserts the IntArray contains exactly the expected elements. They must be in the same order and there must not be any extra elements.

See Also

containsAll

(common, jvm) @JvmName("shortArrayContainsExactly") fun Assert<ShortArray>.containsExactly(vararg elements: Short): Unit

Asserts the ShortArray contains exactly the expected elements. They must be in the same order and there must not be any extra elements.

See Also

containsAll

(common, jvm) @JvmName("longArrayContainsExactly") fun Assert<LongArray>.containsExactly(vararg elements: Long): Unit

Asserts the LongArray contains exactly the expected elements. They must be in the same order and there must not be any extra elements.

See Also

containsAll

(common, jvm) @JvmName("floatArrayContainsExactly") fun Assert<FloatArray>.containsExactly(vararg elements: Float): Unit

Asserts the FloatArray contains exactly the expected elements. They must be in the same order and there must not be any extra elements.

See Also

containsAll

(common, jvm) @JvmName("doubleArrayContainsExactly") fun Assert<DoubleArray>.containsExactly(vararg elements: Double): Unit

Asserts the DoubleArray contains exactly the expected elements. They must be in the same order and there must not be any extra elements.

See Also

containsAll

(common, jvm) @JvmName("charArrayContainsExactly") fun Assert<CharArray>.containsExactly(vararg elements: Char): Unit

Asserts the CharArray contains exactly the expected elements. They must be in the same order and there must not be any extra elements.

See Also

containsAll

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

Asserts the array contains exactly the expected elements. They must be in the same order and there must not be any extra elements.

See Also

containsAll

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

Asserts the list contains exactly the expected elements. They must be in the same order and there must not be any extra elements.

See Also

containsAll