assertk.assertions / containsExactly

containsExactly

fun <T> Assert<Array<T>>.containsExactly(vararg elements: Any?): Unit

Platform and version requirements: Common

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

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

Platform and version requirements: Common

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