assertk.assertions / isNotEqualTo

isNotEqualTo

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

Platform and version requirements: Common

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

See Also

isEqualTo

isNotSameAs

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

Platform and version requirements: Common

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

See Also

isEqualTo

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

Platform and version requirements: Common

Asserts the string is not equal to the expected string.

Parameters

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

See Also

isEqualTo