doc / ch.tutteli.atrium.domain.builders.creating / FloatingPointAssertionsBuilder

FloatingPointAssertionsBuilder

expect object FloatingPointAssertionsBuilder : FloatingPointAssertions (source)

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.

Functions

toBeWithErrorTolerance

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

Inherited Functions

toBeWithErrorTolerance

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