atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating / FloatingPointAssertionsBuilder

FloatingPointAssertionsBuilder

expect object FloatingPointAssertionsBuilder (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: <ERROR CLASS><Float>, expected: Float, tolerance: Float): <ERROR CLASS>
fun toBeWithErrorTolerance(subjectProvider: <ERROR CLASS><Double>, expected: Double, tolerance: Double): <ERROR CLASS>
fun <T : BigDecimal> toBeWithErrorTolerance(subjectProvider: <ERROR CLASS><T>, expected: T, tolerance: T): <ERROR CLASS>

Extension Functions

asExpect

fun <T, A> A.asExpect(): <ERROR CLASS><T>
fun <T : Any, A> A.asExpect(assertionCreator: <ERROR CLASS><T>.() -> Unit): A

Turns Assert or AssertionPlantNullable into an Expect so that you can use new functionality which is not available on Assert/AssertionPlantNullable.