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

shouldBeGreaterThanOrEqualTo

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

Verifies that this is greater than or equal to other

Opposite of shouldNotBeGreaterThanOrEqualTo

This function will check for the result of Comparable.compareTo and result accordingly. This will pass if the value is greater than or equal to other (compareTo returns >= 0).

See Also

shouldNotBeGreaterThanOrEqualTo

shouldBeGreaterThan