public class ListKt
| Modifier and Type | Method and Description |
|---|---|
static <T extends List<?>> |
containsExactly(Assert<? extends T> $receiver,
java.lang.Object elements)
Asserts the list contains exactly the expected elements. They must be in the same order and
there must not be any extra elements.
|
static <T> void |
index(Assert<? extends java.util.List<? extends T>> $receiver,
int index,
kotlin.jvm.functions.Function1<? super assertk.Assert<? extends T>,kotlin.Unit> f)
Returns an assert that assertion on the value at the given index in the list.
|
public static <T> void index(Assert<? extends java.util.List<? extends T>> $receiver, int index, kotlin.jvm.functions.Function1<? super assertk.Assert<? extends T>,kotlin.Unit> f)
Returns an assert that assertion on the value at the given index in the list.
assert(listOf(0, 1, 2)).index(1) { it.isPositive() }
public static <T extends List<?>> void containsExactly(Assert<? extends T> $receiver, java.lang.Object elements)
Asserts the list contains exactly the expected elements. They must be in the same order and there must not be any extra elements.
PrimativeArrayKt.byteArrayContainsAll