assertk / assertk.assertions / corresponds

corresponds

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

Asserts the value corresponds 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

isEqualTo

doesNotCorrespond