kotest-assertions / io.kotest.properties / Gen / concat

concat

open fun <U : T> concat(gen: Gen<U>): Gen<T>
Deprecated: Deprecated and will be removed in 5.0. Migrate to the new property test classes in 4.0

Returns a new [Gen] which will return the values from this gen and only once values of this gen exhaust it will return the values from the supplied gen. The supplied gen must be a subtype of the type of this gen.