assertk.assertions / hasSize

hasSize

fun Assert<Array<*>>.hasSize(size: Int): Unit

Platform and version requirements: Common

Asserts the array has the expected size.

fun Assert<Collection<*>>.hasSize(size: Int): Unit

Platform and version requirements: Common


fun Assert<Map<*, *>>.hasSize(size: Int): Unit

Platform and version requirements: Common

Asserts the collection has the expected size.