doc / ch.tutteli.atrium.api.fluent.en_GB / isLessThan

isLessThan

fun <T : Comparable<T>> Expect<T>.isLessThan(expected: T): Expect<T> (source)
Deprecated: Use toBeLessThan; will be removed with 1.0.0 at the latest

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

expect(1).isLessThan(2)

fails {
    expect(2).isLessThan(1)
}

Return
an Expect for the subject of this expectation.