assertEquals
Asserts that the expected value is equal to the actual value, with an optional message.
Since Kotlin
1.0Asserts that the expected value is equal to the actual value, with an error message generated by the lazyMessage lambda otherwise.
Since Kotlin
2.4fun assertEquals(expected: Double, actual: Double, absoluteTolerance: Double, message: String? = null)(source)
fun assertEquals(expected: Float, actual: Float, absoluteTolerance: Float, message: String? = null)(source)
Asserts that the difference between the actual and the expected is within an absoluteTolerance, with an optional message.
Since Kotlin
1.5fun assertEquals(expected: Double, actual: Double, absoluteTolerance: Double, lazyMessage: () -> String)(source)
fun assertEquals(expected: Float, actual: Float, absoluteTolerance: Float, lazyMessage: () -> String)(source)
Asserts that the difference between the actual and the expected is within an absoluteTolerance, with an error message generated by the lazyMessage lambda otherwise.