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

shouldNotBeLessThanOrEqualTo

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

Verifies that this is NOT less than nor equal to other

Opposite of shouldBeLessThanOrEqualTo

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

See Also

shouldBeLessThanOrEqualTo

shouldNotBeLessThan