assertk.assertions / isNotEmpty

isNotEmpty

fun Assert<Array<*>>.isNotEmpty(): Unit

Platform and version requirements: Common

Asserts the array is not empty.

See Also

isEmpty

fun Assert<CharSequence>.isNotEmpty(): Unit

Platform and version requirements: Common

Asserts the char sequence is not empty.

See Also

isEmpty

fun Assert<Collection<*>>.isNotEmpty(): Unit

Platform and version requirements: Common


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

Platform and version requirements: Common

Asserts the collection is not empty.

See Also

isEmpty

fun Assert<Iterable<*>>.isNotEmpty(): Unit

Platform and version requirements: Common

Asserts the iterable is not empty.

See Also

isEmpty

@JvmName("byteArrayIsNotEmpty") fun Assert<ByteArray>.isNotEmpty(): Unit

Asserts the ByteArray is not empty.

See Also

isEmpty

@JvmName("intArrayIsNotEmpty") fun Assert<IntArray>.isNotEmpty(): Unit

Asserts the IntArray is not empty.

See Also

isEmpty

@JvmName("shortArrayIsNotEmpty") fun Assert<ShortArray>.isNotEmpty(): Unit

Asserts the ShortArray is not empty.

See Also

isEmpty

@JvmName("longArrayIsNotEmpty") fun Assert<LongArray>.isNotEmpty(): Unit

Asserts the LongArray is not empty.

See Also

isEmpty

@JvmName("floatArrayIsNotEmpty") fun Assert<FloatArray>.isNotEmpty(): Unit

Asserts the FloatArray is not empty.

See Also

isEmpty

@JvmName("doubleArrayIsNotEmpty") fun Assert<DoubleArray>.isNotEmpty(): Unit

Asserts the DoubleArray is not empty.

See Also

isEmpty

@JvmName("charArrayIsNotEmpty") fun Assert<CharArray>.isNotEmpty(): Unit

Asserts the CharArray is not empty.

See Also

isEmpty