kotest-assertions / io.kotest.properties / numericFloats

numericFloats

fun Gen.Companion.numericFloats(from: Float = Float.MIN_VALUE, to: Float = Float.MAX_VALUE): Gen<Float>
Deprecated: Deprecated and will be removed in 5.0. Migrate to the new property test classes in 4.0

Returns a Gen which is the same as Gen.float but does not include +INFINITY, -INFINITY or NaN.

This will only generate numbers ranging from from (inclusive) to to (inclusive)