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

shouldBeNegativeInfinity

fun Double.shouldBeNegativeInfinity(): Unit

Verifies that this double is Double.NEGATIVE_INFINITY

Opposite of shouldNotBeNegativeInfinity

Double.NEGATIVE_INFINITY.shouldBeNegativeInfinity()    // Assertion passes
1.0.shouldBeNegativeInfinity()                         // Assertion fails

See Also

beNegativeInfinity