assertk.assertions / isCloseTo

isCloseTo

fun Assert<Float>.isCloseTo(value: Float, delta: Float): Unit

Platform and version requirements: Common


fun Assert<Double>.isCloseTo(value: Double, delta: Double): Unit

Platform and version requirements: Common

Asserts the value if it is close to the expected value with given delta.