# 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`

.

#### Since Kotlin

1.5Asserts 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`

.

#### Since Kotlin

1.5Asserts 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`

.

#### Since Kotlin

1.5Asserts 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.

#### Since Kotlin

1.5### Deprecated (with error)

'assertContentEquals' for Set arguments is ambiguous. Use 'assertEquals' to compare content with the unordered set equality, or cast one of arguments to Iterable to compare the set elements in order of iteration.

#### Replace with

`assertContentEquals(expected, actual?.asIterable(), message)`