kotest-assertions / io.kotest.properties / from

from

fun <T> Gen.Companion.from(values: List<T>): Gen<T>
Deprecated: Deprecated and will be removed in 5.0. Migrate to the new property test classes in 4.0

Adapts a list into a generator, where random values will be picked. May not choose every item in the list.

fun <T> Gen.Companion.from(values: Array<T>): Gen<T>
Deprecated: Deprecated and will be removed in 5.0. Migrate to the new property test classes in 4.0

Return
a new Gen created from the given values (see from List for more details)