strikt-core / strikt.assertions / hasSize

hasSize

infix fun <T : Collection<E>, E> Builder<T>.hasSize(expected: Int): Builder<T>

Asserts that the subject has a Collection.size of exactly expected.