doc / ch.tutteli.atrium.api.infix.en_GB / notToBeLessThan

notToBeLessThan

infix fun <T : Comparable<T>> Expect<T>.notToBeLessThan(expected: T): Expect<T> (source)

Expects that the subject of this expectation is not less than expected. The comparison is carried out with Comparable.compareTo.

You could also use toBeGreaterThanOrEqualTo which is logically equivalent.

expect(2) notToBeLessThan 1
expect(2) notToBeLessThan 2

fails {
    expect(1) notToBeLessThan 2
}

Return
an Expect for the subject of this expectation.

Since
0.17.0