strikt-core / strikt.assertions / isEqualTo

isEqualTo

infix fun <T> Builder<T>.isEqualTo(expected: T?): Builder<T>

Asserts that the subject is equal to expected according to the standard Kotlin == operator.

Parameters

expected - the expected value.

fun Builder<Double>.isEqualTo(expected: Double, tolerance: Double): Builder<Double>
fun Builder<Float>.isEqualTo(expected: Float, tolerance: Double): Builder<Float>

Asserts that the subject is within tolerance of expected.