strikt-core / strikt.assertions / one

one

infix fun <T : Iterable<E>, E> Builder<T>.one(predicate: Builder<E>.() -> Unit): Builder<T>

Asserts that exactly one element of the subject passes the assertions in predicate.