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

FloatingPointAssertionsCommon

interface FloatingPointAssertionsCommon

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

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

FloatingPointAssertions

expect interface FloatingPointAssertions : FloatingPointAssertionsCommon

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