kotest-assertions-core / io.kotest.matchers.collections / kotlin.collections.List

Extensions for kotlin.collections.List

shouldBeMonotonicallyDecreasing

fun <T : Comparable<T>> List<T>.shouldBeMonotonicallyDecreasing(): Unit

shouldBeMonotonicallyDecreasingWith

fun <T> List<T>.shouldBeMonotonicallyDecreasingWith(comparator: Comparator<in T>): Unit

shouldBeMonotonicallyIncreasing

fun <T : Comparable<T>> List<T>.shouldBeMonotonicallyIncreasing(): Unit

shouldBeMonotonicallyIncreasingWith

fun <T> List<T>.shouldBeMonotonicallyIncreasingWith(comparator: Comparator<in T>): Unit

shouldBeSorted

fun <T : Comparable<T>> List<T>.shouldBeSorted(): Unit

shouldBeSortedWith

infix fun <T> List<T>.shouldBeSortedWith(comparator: Comparator<in T>): Unit
infix fun <T> List<T>.shouldBeSortedWith(cmp: (T, T) -> Int): Unit

shouldBeStrictlyDecreasing

fun <T : Comparable<T>> List<T>.shouldBeStrictlyDecreasing(): Unit

shouldBeStrictlyDecreasingWith

fun <T> List<T>.shouldBeStrictlyDecreasingWith(comparator: Comparator<in T>): Unit

shouldBeStrictlyIncreasing

fun <T : Comparable<T>> List<T>.shouldBeStrictlyIncreasing(): Unit

shouldBeStrictlyIncreasingWith

fun <T> List<T>.shouldBeStrictlyIncreasingWith(comparator: Comparator<in T>): Unit

shouldContainInOrder

fun <T> List<T>.shouldContainInOrder(vararg ts: T): Unit
infix fun <T> List<T>.shouldContainInOrder(expected: List<T>): Unit

shouldEndWith

infix fun <T> List<T>.shouldEndWith(element: T): Unit
infix fun <T> List<T>.shouldEndWith(slice: Collection<T>): Unit
infix fun <T> List<T>.shouldEndWith(slice: Array<T>): Unit

shouldHaveElementAt

fun <T> List<T>.shouldHaveElementAt(index: Int, element: T): Unit

shouldNotBeMonotonicallyDecreasing

fun <T : Comparable<T>> List<T>.shouldNotBeMonotonicallyDecreasing(): Unit

shouldNotBeMonotonicallyDecreasingWith

fun <T> List<T>.shouldNotBeMonotonicallyDecreasingWith(comparator: Comparator<in T>): Unit

shouldNotBeMonotonicallyIncreasing

fun <T : Comparable<T>> List<T>.shouldNotBeMonotonicallyIncreasing(): Unit

shouldNotBeMonotonicallyIncreasingWith

fun <T> List<T>.shouldNotBeMonotonicallyIncreasingWith(comparator: Comparator<in T>): Unit

shouldNotBeSorted

fun <T : Comparable<T>> List<T>.shouldNotBeSorted(): Unit

shouldNotBeSortedWith

infix fun <T> List<T>.shouldNotBeSortedWith(comparator: Comparator<in T>): Unit
infix fun <T> List<T>.shouldNotBeSortedWith(cmp: (T, T) -> Int): Unit

shouldNotBeStrictlyDecreasing

fun <T : Comparable<T>> List<T>.shouldNotBeStrictlyDecreasing(): Unit

shouldNotBeStrictlyDecreasingWith

fun <T> List<T>.shouldNotBeStrictlyDecreasingWith(comparator: Comparator<in T>): Unit

shouldNotBeStrictlyIncreasing

fun <T : Comparable<T>> List<T>.shouldNotBeStrictlyIncreasing(): Unit

shouldNotBeStrictlyIncreasingWith

fun <T> List<T>.shouldNotBeStrictlyIncreasingWith(comparator: Comparator<in T>): Unit

shouldNotContainInOrder

infix fun <T> List<T>.shouldNotContainInOrder(expected: List<T>): Unit

shouldNotEndWith

infix fun <T> List<T>.shouldNotEndWith(element: T): Unit
infix fun <T> List<T>.shouldNotEndWith(slice: Collection<T>): Unit

shouldNotHaveElementAt

fun <T> List<T>.shouldNotHaveElementAt(index: Int, element: T): Unit

shouldNotStartWith

infix fun <T> List<T>.shouldNotStartWith(element: T): Unit
infix fun <T> List<T>.shouldNotStartWith(slice: Collection<T>): Unit

shouldStartWith

infix fun <T> List<T>.shouldStartWith(element: T): Unit
infix fun <T> List<T>.shouldStartWith(slice: Collection<T>): Unit