kotest-assertions-core / io.kotest.matchers.longs / kotlin.Long

Extensions for kotlin.Long

shouldBeBetween

Verifies that the given Long is between a and b inclusive.

fun Long.shouldBeBetween(a: Long, b: Long): Unit

shouldBeEven

fun Long.shouldBeEven(): Unit

shouldBeExactly

infix fun Long.shouldBeExactly(x: Long): Unit

shouldBeGreaterThan

infix fun Long.shouldBeGreaterThan(x: Long): Unit

shouldBeGreaterThanOrEqual

infix fun Long.shouldBeGreaterThanOrEqual(x: Long): Unit

shouldBeInRange

infix fun Long.shouldBeInRange(range: LongRange): Unit

shouldBeLessThan

infix fun Long.shouldBeLessThan(x: Long): Unit

shouldBeLessThanOrEqual

infix fun Long.shouldBeLessThanOrEqual(x: Long): Unit

shouldBeNegative

fun Long.shouldBeNegative(): Unit

shouldBeOdd

fun Long.shouldBeOdd(): Unit

shouldBePositive

fun Long.shouldBePositive(): Unit

shouldBeZero

fun Long.shouldBeZero(): Unit

shouldNotBeBetween

Verifies that the given Long is NOT between a and b inclusive.

fun Long.shouldNotBeBetween(a: Long, b: Long): Unit

shouldNotBeEven

fun Long.shouldNotBeEven(): Unit

shouldNotBeExactly

infix fun Long.shouldNotBeExactly(x: Long): Unit

shouldNotBeGreaterThan

infix fun Long.shouldNotBeGreaterThan(x: Long): Unit

shouldNotBeGreaterThanOrEqual

infix fun Long.shouldNotBeGreaterThanOrEqual(x: Long): Unit

shouldNotBeInRange

infix fun Long.shouldNotBeInRange(range: LongRange): Unit

shouldNotBeLessThan

infix fun Long.shouldNotBeLessThan(x: Long): Unit

shouldNotBeLessThanOrEqual

infix fun Long.shouldNotBeLessThanOrEqual(x: Long): Unit

shouldNotBeOdd

fun Long.shouldNotBeOdd(): Unit

shouldNotBeZero

fun Long.shouldNotBeZero(): Unit