assertContentEquals
Asserts that the expected iterable is structurally equal to the actual iterable, i.e. contains the same number of the same elements in the same order, with an optional message.
The elements are compared for equality with the equals function.
For floating point numbers it means that NaN
is equal to itself and -0.0
is not equal to 0.0
.
Asserts that the expected sequence is structurally equal to the actual sequence, i.e. contains the same number of the same elements in the same order, with an optional message.
The elements are compared for equality with the equals function.
For floating point numbers it means that NaN
is equal to itself and -0.0
is not equal to 0.0
.
fun assertContentEquals(
expected: FloatArray?,
actual: FloatArray?,
message: String? = null
): Unit
(source)
fun assertContentEquals(
expected: DoubleArray?,
actual: DoubleArray?,
message: String? = null
): Unit
(source)
Asserts that the expected array is structurally equal to the actual array, i.e. contains the same number of the same elements in the same order, with an optional message.
The elements are compared for equality with the equals function.
For floating point numbers it means that NaN
is equal to itself and -0.0
is not equal to 0.0
.
fun assertContentEquals(
expected: ShortArray?,
actual: ShortArray?,
message: String? = null
): Unit
(source)
fun assertContentEquals(
expected: BooleanArray?,
actual: BooleanArray?,
message: String? = null
): Unit
(source)
fun assertContentEquals(
expected: UByteArray?,
actual: UByteArray?,
message: String? = null
): Unit
(source)
fun assertContentEquals(
expected: UShortArray?,
actual: UShortArray?,
message: String? = null
): Unit
(source)
fun assertContentEquals(
expected: ULongArray?,
actual: ULongArray?,
message: String? = null
): Unit
(source)