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.

@JvmName("byteArrayHasSameSizeAs") fun Assert<ByteArray>.hasSameSizeAs(other: ByteArray): Unit

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

@JvmName("intArrayHasSameSizeAs") fun Assert<IntArray>.hasSameSizeAs(other: IntArray): Unit

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

@JvmName("shortArrayHasSameSizeAs") fun Assert<ShortArray>.hasSameSizeAs(other: ShortArray): Unit

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

@JvmName("longArrayHasSameSizeAs") fun Assert<LongArray>.hasSameSizeAs(other: LongArray): Unit

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

@JvmName("floatArrayHasSameSizeAs") fun Assert<FloatArray>.hasSameSizeAs(other: FloatArray): Unit

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

@JvmName("doubleArrayHasSameSizeAs") fun Assert<DoubleArray>.hasSameSizeAs(other: DoubleArray): Unit

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

@JvmName("charArrayHasSameSizeAs") fun Assert<CharArray>.hasSameSizeAs(other: CharArray): Unit

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