kotest-assertions-core / io.kotest.matchers.doubles / kotlin.Double / shouldNotBePositiveInfinity

shouldNotBePositiveInfinity

fun Double.shouldNotBePositiveInfinity(): Unit

Verifies that this double is NOT Double.POSITIVE_INFINITY

Opposite of shouldBePositiveInfinity

Double.POSITIVE_INFINITY.shouldNotBePositiveInfinity()       // Assertion fails
1.0.shouldBeNotPositiveInfinity()                            // Assertion passes

See Also

bePositiveInfinity