public class ListKt
| Modifier and Type | Method and Description |
|---|---|
static void |
containsExactly(Assert<? extends java.util.List<?>> $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)
Deprecated.
|
static <T> Assert<T> |
index(Assert<? extends java.util.List<? extends T>> $receiver,
int index)
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.
assertThat(listOf(0, 1, 2)).index(1) { it.isPositive() }
public static <T> Assert<T> index(Assert<? extends java.util.List<? extends T>> $receiver, int index)
Returns an assert that assertion on the value at the given index in the list.
assertThat(listOf(0, 1, 2)).index(1).isPositive()
public static void containsExactly(Assert<? extends java.util.List<?>> $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