strikt-core / strikt.assertions / doesNotContain

doesNotContain

fun <T : Iterable<E>, E> Builder<T>.doesNotContain(vararg elements: E): Builder<T>
infix fun <T : Iterable<E>, E> Builder<T>.doesNotContain(elements: Collection<E>): Builder<T>

Asserts that none of elements are present in the subject.

If elements is empty the assertion always fails. If the subject is empty the assertion always passe.