fun <E, T : Iterable<E>> Expect<T>.toHaveElementsAndNoDuplicates(): Expect<T>
(source)
Expects that the subject of this
expectation (an Iterable) has next element(s) and
that it does not have duplicate elements.
expect(listOf("A", "B")).toHaveElementsAndNoDuplicates()
fails {
expect(listOf("A", "B", "C", "A")).toHaveElementsAndNoDuplicates()
}
Return
an Expect for the subject of this
expectation.
Since
0.17.0