assertEquals

Common
JVM
JS
Native
1.0
fun <T> assertEquals(
    expected: T,
    actual: T,
    message: String? = null
): Unit

Asserts that the expected value is equal to the actual value, with an optional message.

Common
JVM
JS
Native
1.5
fun assertEquals(
    expected: Double,
    actual: Double,
    absoluteTolerance: Double,
    message: String? = null
): Unit
fun assertEquals(
    expected: Float,
    actual: Float,
    absoluteTolerance: Float,
    message: String? = null
): Unit

Asserts that the difference between the actual and the expected is within an absoluteTolerance, with an optional message.