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

shouldBeGreaterThan

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

Verifies that this is greater than other

Opposite of shouldNotBeGreaterThan

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

See Also

shouldNotBeGreaterThan

shouldBeGreaterThanOrEqualTo