|
butAtMost
|
fun <T : CharSequence, S : SearchBehaviour> CharSequenceContainsAtLeastCheckerBuilder<T, S>.butAtMost(times: Int): CharSequenceContainsButAtMostCheckerBuilder<T, S>
Restricts a contains at least assertion by specifying that the number of occurrences of the object which we
are looking for, occurs at most number of times within the search input.
fun <E, T : Iterable<E>> IterableContainsAtLeastCheckerBuilder<E, T>.butAtMost(times: Int): IterableContainsButAtMostCheckerBuilder<E, T>
Restricts a contains at least assertion by specifying that the number of occurrences of the entry which we
are looking for, occurs at most number of times within the Iterable.
|