doc / ch.tutteli.atrium.domain.creating / FloatingPointAssertions

FloatingPointAssertions

interface FloatingPointAssertions (source)

Defines the minimum set of assertion functions and builders applicable to floating points (Float, Double, BigDecimal), which an implementation of the domain of Atrium has to provide.

Functions

toBeWithErrorTolerance

abstract fun toBeWithErrorTolerance(plant: AssertionPlant<Float>, expected: Float, tolerance: Float): Assertion
abstract fun toBeWithErrorTolerance(plant: AssertionPlant<Double>, expected: Double, tolerance: Double): Assertion
abstract fun <T : BigDecimal> toBeWithErrorTolerance(plant: AssertionPlant<T>, expected: T, tolerance: T): Assertion

Inheritors

FloatingPointAssertionsBuilder

object FloatingPointAssertionsBuilder : FloatingPointAssertions

Delegates inter alia to the implementation of FloatingPointAssertions. In detail, it implements FloatingPointAssertions by delegating to floatingPointAssertions which in turn delegates to the implementation via ServiceLoader.