assertk.assertions / hasSameSizeAs

hasSameSizeAs

fun <T> Assert<Array<T>>.hasSameSizeAs(other: Array<*>): Unit

Platform and version requirements: Common

Asserts the array has the same size as the expected array.

fun Assert<Collection<*>>.hasSameSizeAs(other: Collection<*>): Unit

Platform and version requirements: Common

Asserts the collection has the same size as the expected collection.

fun Assert<Map<*, *>>.hasSameSizeAs(other: Map<*, *>): Unit

Platform and version requirements: Common

Asserts the map has the same size as the expected map.