kotest-assertions-core / io.kotest.matchers.doubles / beNegativeInfinity

beNegativeInfinity

fun beNegativeInfinity(): Matcher<Double>

Matcher that matches whether a double is Double.NEGATIVE_INFINITY or not

Double.NEGATIVE_INFINITY should beNegativeInfinity()   // Assertion passes
1.0 should beNegativeInfinity()                        // Assertion fails