noDuplicates

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.

Since

0.14.0

Samples

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

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