kotest-assertions-core / io.kotest.matchers.floats / kotlin.Float

Extensions for kotlin.Float

plusOrMinus

infix fun Float.plusOrMinus(tolerance: Float): FloatToleranceMatcher

shouldBeExactly

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

shouldBeGreaterThan

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

shouldBeGreaterThanOrEqual

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

shouldBeLessThan

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

shouldBeLessThanOrEqual

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

shouldBeZero

fun Float.shouldBeZero(): Unit

shouldNotBeExactly

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

shouldNotBeGreaterThan

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

shouldNotBeGreaterThanOrEqual

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

shouldNotBeLessThan

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

shouldNotBeLessThanOrEqual

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

shouldNotBeZero

fun Float.shouldNotBeZero(): Unit