doc / ch.tutteli.atrium.api.infix.en_GB / noDuplicates

noDuplicates

object noDuplicates : Keyword (source)

A helper construct to allow expressing expectations about iterable contains no duplicates. It can be used for a parameterless function so that it has one parameter and thus can be used as infix function.

expect(listOf("A", "B")) toHaveElementsAnd noDuplicates

fails {
    expect(listOf("A", "B", "C", "A")) toHaveElementsAnd noDuplicates
}

Since
0.14.0