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

Package io.kotest.matchers.doubles

Types

ToleranceMatcher

class ToleranceMatcher : Matcher<Double?>

Extensions for External Classes

kotlin.Double

Functions

beGreaterThan

fun beGreaterThan(x: Double): Matcher<Double>

beGreaterThanOrEqualTo

fun beGreaterThanOrEqualTo(x: Double): Matcher<Double>

beLessThan

fun beLessThan(x: Double): Matcher<Double>

beLessThanOrEqualTo

fun beLessThanOrEqualTo(x: Double): Matcher<Double>

beNaN

Matcher that matches Double.NaN

fun beNaN(): Matcher<Double>

beNegativeInfinity

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

fun beNegativeInfinity(): Matcher<Double>

bePositiveInfinity

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

fun bePositiveInfinity(): Matcher<Double>

between

Matcher that matches doubles and intervals

fun between(a: Double, b: Double, tolerance: Double): Matcher<Double>

exactly

fun exactly(d: Double): Matcher<Double>

gt

fun gt(x: Double): Matcher<Double>

gte

fun gte(x: Double): Matcher<Double>

lt

fun lt(x: Double): Matcher<Double>

lte

fun lte(x: Double): Matcher<Double>

negative

fun negative(): Matcher<Double>

positive

fun positive(): Matcher<Double>