isEqualTo

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

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

See also


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

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

See also


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

Asserts the string is equal to the expected string.

Parameters

ignoreCase

true to compare ignoring case, the default if false.

See also