assertk / assertk.assertions / doesNotCorrespond

doesNotCorrespond

(common, jvm) fun <T, E> Assert<T>.doesNotCorrespond(expected: E, correspondence: (T, E) -> Boolean): Unit

Asserts the value does not correspond to the expected one using the given correspondence function to compare them. This is useful when the objects don't have an equals implementation.

See Also

corresponds

isNotEqualTo