assertContentEquals
Asserts that the expected iterable is structurally equal to the actual iterable, with an optional message.
Two iterables are considered structurally equal if they have the same size,
and elements at corresponding positions, following the iteration order, are equal.
Elements are compared for equality using the equals function.
For floating point numbers, this means NaN
is equal to itself and -0.0
is not equal to 0.0
.
The iterables are also considered equal if both are null
.
Asserts that the expected sequence is structurally equal to the actual sequence, with an optional message.
Two sequences are considered structurally equal if they have the same size,
and elements at corresponding positions, following the iteration order, are equal.
Elements are compared for equality using the equals function.
For floating point numbers, this means NaN
is equal to itself and -0.0
is not equal to 0.0
.
The sequences are also considered equal if both are null
.
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, with an optional message.
Two arrays are considered structurally equal if they have the same size, and elements at corresponding indices are equal.
Elements are compared for equality using the equals function.
For floating point numbers, this means NaN
is equal to itself and -0.0
is not equal to 0.0
.
The arrays are also considered equal if both are null
.
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)