kotest-assertions-core / io.kotest.matchers.collections / singleElement

singleElement

fun <T> singleElement(t: T): Matcher<Collection<T>>
fun <T> singleElement(p: (T) -> Boolean): Matcher<Collection<T>>