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

shouldNotBeNegativeInfinity

fun Double.shouldNotBeNegativeInfinity(): Unit

Verifies that this double is NOT Double.NEGATIVE_INFINITY

Opposite of shouldBeNegativeInfinity

Double.NEGATIVE_INFINITY.shouldNotBeNegativeInfinity()       // Assertion fails
1.0.shouldBeNotNegativeInfinity()                            // Assertion passes

See Also

beNegativeInfinity