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

FloatingPointAssertions

expect interface FloatingPointAssertions : FloatingPointAssertionsCommon (source)

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

An actual or in other words platform specific interface might add further methods.

Functions

toBeWithErrorTolerance

abstract fun <T : BigDecimal> toBeWithErrorTolerance(subjectProvider: SubjectProvider<T>, expected: T, tolerance: T): Assertion

Inherited Functions

toBeWithErrorTolerance

abstract fun toBeWithErrorTolerance(subjectProvider: SubjectProvider<Float>, expected: Float, tolerance: Float): Assertion
abstract fun toBeWithErrorTolerance(subjectProvider: SubjectProvider<Double>, expected: Double, tolerance: Double): Assertion

Inheritors

FloatingPointAssertionsBuilder

expect 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 loadSingleService.