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

Extensions for kotlin.Array

shouldBeEmpty

fun <T> Array<T>.shouldBeEmpty(): Unit

shouldBeLargerThan

infix fun <T, U> any_array<T>.shouldBeLargerThan(other: Collection<U>): Unit

shouldBeMonotonicallyDecreasing

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

shouldBeMonotonicallyDecreasingWith

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

shouldBeMonotonicallyIncreasing

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

shouldBeMonotonicallyIncreasingWith

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

shouldBeSameSizeAs

infix fun <T, U> any_array<T>.shouldBeSameSizeAs(other: Collection<U>): Unit

shouldBeSingleton

fun <T> any_array<T>.shouldBeSingleton(): Unit

shouldBeSmallerThan

infix fun <T, U> any_array<T>.shouldBeSmallerThan(other: Collection<U>): Unit

shouldBeSorted

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

shouldBeSortedWith

infix fun <T> any_array<T>.shouldBeSortedWith(comparator: Comparator<in T>): Unit

shouldBeStrictlyDecreasing

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

shouldBeStrictlyDecreasingWith

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

shouldBeStrictlyIncreasing

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

shouldBeStrictlyIncreasingWith

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

shouldBeUnique

fun <T> Array<T>.shouldBeUnique(): Unit

shouldContain

infix fun <T> Array<T>.shouldContain(t: T): Unit

shouldContainAll

fun <T> any_array<T>.shouldContainAll(vararg ts: T): Unit

shouldContainAnyOf

fun <T> any_array<T>.shouldContainAnyOf(vararg ts: T): Unit

shouldContainDuplicates

fun <T> Array<T>.shouldContainDuplicates(): Unit

shouldContainExactly

infix fun <T> Array<T>?.shouldContainExactly(expected: Array<T>): Unit

shouldContainExactlyInAnyOrder

infix fun <T> Array<T>.shouldContainExactlyInAnyOrder(expected: Array<T>): Unit

shouldContainInOrder

fun <T> any_array<T>.shouldContainInOrder(vararg ts: T): Unit

shouldContainNoNulls

fun <T> Array<T>.shouldContainNoNulls(): Unit

shouldContainNull

fun <T> Array<T>.shouldContainNull(): Unit

shouldContainOnlyNulls

fun <T> Array<T>.shouldContainOnlyNulls(): Unit

shouldEndWith

infix fun <T> any_array<T>.shouldEndWith(element: T): Unit

shouldExist

infix fun <T> Array<T>.shouldExist(p: (T) -> Boolean): Unit

shouldHaveAtLeastSize

infix fun <T> Array<T>.shouldHaveAtLeastSize(n: Int): Unit

shouldHaveAtMostSize

infix fun <T> Array<T>.shouldHaveAtMostSize(n: Int): Unit

shouldHaveElementAt

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

shouldHaveLowerBound

infix fun <T : Comparable<T>> Array<T>.shouldHaveLowerBound(t: T): Unit

shouldHaveSingleElement

infix fun <T> any_array<T>.shouldHaveSingleElement(t: T): Unit

shouldHaveSize

infix fun <T> Array<T>.shouldHaveSize(size: Int): Unit

shouldHaveUpperBound

infix fun <T : Comparable<T>> Array<T>.shouldHaveUpperBound(t: T): Unit

shouldNotBeEmpty

fun <T> Array<T>.shouldNotBeEmpty(): Unit

shouldNotBeMonotonicallyDecreasing

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

shouldNotBeMonotonicallyDecreasingWith

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

shouldNotBeMonotonicallyIncreasing

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

shouldNotBeMonotonicallyIncreasingWith

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

shouldNotBeSingleton

fun <T> Array<T>.shouldNotBeSingleton(): Unit

shouldNotBeSorted

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

shouldNotBeSortedWith

infix fun <T> any_array<T>.shouldNotBeSortedWith(comparator: Comparator<in T>): Unit

shouldNotBeStrictlyDecreasing

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

shouldNotBeStrictlyDecreasingWith

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

shouldNotBeStrictlyIncreasing

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

shouldNotBeStrictlyIncreasingWith

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

shouldNotBeUnique

fun <T> Array<T>.shouldNotBeUnique(): Unit

shouldNotContain

infix fun <T> Array<T>.shouldNotContain(t: T): Unit

shouldNotContainAll

fun <T> any_array<T>.shouldNotContainAll(vararg ts: T): Unit

shouldNotContainAnyOf

fun <T> any_array<T>.shouldNotContainAnyOf(vararg ts: T): Unit

shouldNotContainDuplicates

fun <T> Array<T>.shouldNotContainDuplicates(): Unit

shouldNotContainExactly

infix fun <T> Array<T>?.shouldNotContainExactly(expected: Array<T>): Unit

shouldNotContainExactlyInAnyOrder

infix fun <T> Array<T>.shouldNotContainExactlyInAnyOrder(expected: Array<T>): Unit

shouldNotContainInOrder

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

shouldNotContainNoNulls

fun <T> Array<T>.shouldNotContainNoNulls(): Unit

shouldNotContainNull

fun <T> Array<T>.shouldNotContainNull(): Unit

shouldNotContainOnlyNulls

fun <T> Array<T>.shouldNotContainOnlyNulls(): Unit

shouldNotEndWith

infix fun <T> any_array<T>.shouldNotEndWith(element: T): Unit

shouldNotHaveElementAt

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

shouldNotHaveSingleElement

infix fun <T> Array<T>.shouldNotHaveSingleElement(t: T): Unit

shouldNotHaveSize

infix fun <T> Array<T>.shouldNotHaveSize(size: Int): Unit

shouldNotStartWith

infix fun <T> any_array<T>.shouldNotStartWith(element: T): Unit

shouldStartWith

infix fun <T> any_array<T>.shouldStartWith(element: T): Unit