assertNotEquals

fun <T> assertNotEquals(illegal: T, actual: T, message: String? = null)(source)

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

Since Kotlin

1.0

fun <T> assertNotEquals(illegal: T, actual: T, lazyMessage: () -> String)(source)

Asserts that the actual value is not equal to the illegal value, with an error message generated by the lazyMessage lambda otherwise.

Since Kotlin

2.4

fun assertNotEquals(illegal: Double, actual: Double, absoluteTolerance: Double, message: String? = null)(source)
fun assertNotEquals(illegal: Float, actual: Float, absoluteTolerance: Float, message: String? = null)(source)

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

Since Kotlin

1.5

fun assertNotEquals(illegal: Double, actual: Double, absoluteTolerance: Double, lazyMessage: () -> String)(source)
fun assertNotEquals(illegal: Float, actual: Float, absoluteTolerance: Float, lazyMessage: () -> String)(source)

Asserts that the difference between the actual and the illegal is not within an absoluteTolerance, with an error message generated by the lazyMessage lambda otherwise.

Since Kotlin

2.4