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

shouldBeLessThanOrEqualTo

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

Verifies that this is less than or equalother

Opposite of shouldNotBeLessThanOrEqualTo

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

See Also

shouldNotBeLessThanOrEqualTo

shouldBeLessThan