doc / ch.tutteli.atrium.logic / IterableLikeAssertions

IterableLikeAssertions

interface IterableLikeAssertions (source)

Collection of assertion functions and builders which are applicable to subjects which can be transformed to an Iterable - intended for types which are Iterable like such as Array or Sequence.

Functions

all

abstract fun <T : Any, E : Any> all(container: AssertionContainer<T>, converter: (T) -> Iterable<E?>, assertionCreatorOrNull: (Expect<E>.() -> Unit)?): Assertion

hasNext

abstract fun <T : Any, E> hasNext(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): Assertion

hasNotNext

abstract fun <T : Any, E> hasNotNext(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): Assertion

max

abstract fun <T : Any, E : Comparable<E>> max(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): ExtractedFeaturePostStep<T, E>

min

abstract fun <T : Any, E : Comparable<E>> min(container: AssertionContainer<T>, converter: (T) -> Iterable<E>): ExtractedFeaturePostStep<T, E>