public class IterableKt
| Modifier and Type | Method and Description |
|---|---|
static <T extends Iterable<?>> |
contains(Assert<? extends T> $receiver,
java.lang.Object element)
Asserts the iterable contains the expected element, using
in. |
static <T extends Iterable<?>> |
doesNotContain(Assert<? extends T> $receiver,
java.lang.Object element)
Asserts the iterable does not contain the expected element, using
!in. |
static <E,T extends Iterable<? extends E>> |
each(Assert<? extends T> $receiver,
kotlin.jvm.functions.Function1<? super assertk.Assert<? extends E>,kotlin.Unit> f)
Asserts on each item in the iterable. The given lambda will be run for each item.
|
public static <T extends Iterable<?>> void contains(Assert<? extends T> $receiver, java.lang.Object element)
Asserts the iterable contains the expected element, using in.
PrimativeArrayKt.byteArrayDoesNotContainpublic static <T extends Iterable<?>> void doesNotContain(Assert<? extends T> $receiver, java.lang.Object element)
Asserts the iterable does not contain the expected element, using !in.
PrimativeArrayKt.byteArrayContainspublic static <E,T extends Iterable<? extends E>> void each(Assert<? extends T> $receiver, kotlin.jvm.functions.Function1<? super assertk.Assert<? extends E>,kotlin.Unit> f)
Asserts on each item in the iterable. The given lambda will be run for each item.
assert(listOf("one", "two")).each {
it.hasLength(3)
}