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

toBeLessThan

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

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

expect(1).toBeLessThan(2)

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

Return
an Expect for the subject of this expectation.

Since
0.17.0