All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.kotlin.ch.tutteli.atrium.logic.FloatingPointAssertions.kt Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package ch.tutteli.atrium.logic

import ch.tutteli.atrium.assertions.Assertion
import ch.tutteli.atrium.creating.AssertionContainer

/**
 * Collection of assertion functions and builders which are applicable to subjects with a floating point number like
 * type (currently [Float] and [Double]).
 */
interface FloatingPointAssertions {
    fun toBeWithErrorTolerance(container: AssertionContainer, expected: Float, tolerance: Float): Assertion
    fun toBeWithErrorTolerance(container: AssertionContainer, expected: Double, tolerance: Double): Assertion
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy