kotest-assertions-core / io.kotest.matchers.comparables / shouldNotBeLessThan

shouldNotBeLessThan

infix fun <T : Comparable<T>> T.shouldNotBeLessThan(other: T): Unit

Verifies that this is NOT less than other

Opposite of shouldBeLessThan

This function will check for the result of Comparable.compareTo and result accordingly. This will pass if the value is not less than other (compareTo doesn't return < 0).

See Also

shouldBeLessThan

shouldNotBeLessThanOrEqualTo