assertk.assertions / isEqualTo

isEqualTo

fun <T> Assert<T>.isEqualTo(expected: Any?): Unit

Platform and version requirements: Common

Asserts the value is equal to the expected one, using ==.

See Also

isNotEqualTo

isSameAs

fun <T> Assert<Array<T>>.isEqualTo(expected: Array<T>): Unit

Platform and version requirements: Common

Asserts the array contents are equal to the expected one, using contentDeepEquals.

See Also

isNotEqualTo

fun Assert<String?>.isEqualTo(other: String?, ignoreCase: Boolean = false): Unit

Platform and version requirements: Common

Asserts the string is equal to the expected string.

Parameters

ignoreCase - true to compare ignoring case, the default if false.

See Also

isNotEqualTo