kotest-assertions-arrow / io.kotest.assertions.arrow.nel / arrow.core.NonEmptyList

Extensions for arrow.core.NonEmptyList

forAll

fun <T> NonEmptyList<T>.forAll(fn: (T) -> Unit): Unit

forAny

fun <T> NonEmptyList<T>.forAny(f: (T) -> Unit): Unit

forAtLeast

fun <T> NonEmptyList<T>.forAtLeast(k: Int, fn: (T) -> Unit): Unit

forAtLeastOne

fun <T> NonEmptyList<T>.forAtLeastOne(f: (T) -> Unit): Unit

forAtMost

fun <T> NonEmptyList<T>.forAtMost(k: Int, fn: (T) -> Unit): Unit

forAtMostOne

fun <T> NonEmptyList<T>.forAtMostOne(f: (T) -> Unit): Unit

forExactly

fun <T> NonEmptyList<T>.forExactly(k: Int, fn: (T) -> Unit): Unit

forNone

fun <T> NonEmptyList<T>.forNone(f: (T) -> Unit): Unit

forOne

fun <T> NonEmptyList<T>.forOne(fn: (T) -> Unit): Unit

forSome

fun <T> NonEmptyList<T>.forSome(fn: (T) -> Unit): Unit

shouldBeSingleElement

infix fun <T> NonEmptyList<T>.shouldBeSingleElement(t: T): Unit

shouldBeSorted

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

shouldBeUnique

fun NonEmptyList<Any>.shouldBeUnique(): Unit

shouldContain

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

shouldContainAll

fun <T> NonEmptyList<T>.shouldContainAll(vararg ts: T): Unit
infix fun <T> NonEmptyList<T>.shouldContainAll(ts: List<T>): Unit

shouldContainElementAt

fun <T> NonEmptyList<T>.shouldContainElementAt(index: Int, element: T): Unit

shouldContainNoNulls

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

shouldContainNull

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

shouldContainOnlyNulls

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

shouldHaveDuplicates

fun NonEmptyList<Any>.shouldHaveDuplicates(): Unit

shouldHaveSize

infix fun NonEmptyList<Any>.shouldHaveSize(size: Int): Unit

shouldNotBeSingleElement

infix fun <T> NonEmptyList<T>.shouldNotBeSingleElement(t: T): Unit

shouldNotBeSorted

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

shouldNotBeUnique

fun NonEmptyList<Any>.shouldNotBeUnique(): Unit

shouldNotContain

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

shouldNotContainAll

fun <T> NonEmptyList<T>.shouldNotContainAll(vararg ts: T): Unit
infix fun <T> NonEmptyList<T>.shouldNotContainAll(ts: List<T>): Unit

shouldNotContainElementAt

fun <T> NonEmptyList<T>.shouldNotContainElementAt(index: Int, element: T): Unit

shouldNotContainNoNulls

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

shouldNotContainNull

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

shouldNotContainOnlyNulls

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

shouldNotHaveDuplicates

fun NonEmptyList<Any>.shouldNotHaveDuplicates(): Unit

shouldNotHaveSize

infix fun NonEmptyList<Any>.shouldNotHaveSize(size: Int): Unit