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

shouldNotBeGreaterThanOrEqualTo

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

Verifies that this is NOT greater than nor equal to other

Opposite of shouldBeGreaterThanOrEqualTo

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

See Also

shouldBeGreaterThanOrEqualTo

shouldNotBeGreaterThan