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

bePositiveInfinity

fun bePositiveInfinity(): Matcher<Double>

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

Double.POSITIVE_INFINITY should bePositiveInfinity()   // Assertion passes
1.0 should bePositiveInfinity()                        // Assertion fails