kotest-property / io.kotest.property.arbitrary / chunked

chunked

fun <A> Arb<A>.chunked(size: IntRange): Arb<List<A>>

Returns an Arb whose of values are a list of values generated by the current arb. The size of each list is determined randomly by the specified size.

Shrinking is performed by removing elements from the list until the empty list.

Parameters

size - minimum and maximum number of items in the lists produced by the returned Arb

fun <A> Arb<A>.chunked(minSize: Int, maxSize: Int): Arb<List<A>>

Returns an Arb whose of values are a list of values generated by the current arb. The size of each list is determined randomly by the specified minSize and maxSize.

Shrinking is performed by removing elements from the list until the empty list.

Parameters

minSize - minimum number of items in the lists produced by the returned Arb

maxSize - maximum number of items in the lists produced by the returned Arb