kotest-assertions-core / io.kotest.matchers.ints / kotlin.Int

Extensions for kotlin.Int

shouldBeBetween

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

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

shouldBeEven

fun Int.shouldBeEven(): Unit

shouldBeExactly

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

shouldBeGreaterThan

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

shouldBeGreaterThanOrEqual

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

shouldBeInRange

infix fun Int.shouldBeInRange(range: IntRange): Unit

shouldBeLessThan

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

shouldBeLessThanOrEqual

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

shouldBeNegative

fun Int.shouldBeNegative(): Unit

shouldBeOdd

fun Int.shouldBeOdd(): Unit

shouldBePositive

fun Int.shouldBePositive(): Unit

shouldBeZero

fun Int.shouldBeZero(): Unit

shouldNotBeBetween

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

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

shouldNotBeEven

fun Int.shouldNotBeEven(): Unit

shouldNotBeExactly

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

shouldNotBeGreaterThan

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

shouldNotBeGreaterThanOrEqual

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

shouldNotBeInRange

infix fun Int.shouldNotBeInRange(range: IntRange): Unit

shouldNotBeLessThan

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

shouldNotBeLessThanOrEqual

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

shouldNotBeOdd

fun Int.shouldNotBeOdd(): Unit

shouldNotBeZero

fun Int.shouldNotBeZero(): Unit