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

toBeGreaterThan

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

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

expect(2) toBeGreaterThan 1

fails {
    expect(2) toBeGreaterThan 2
}

Return
an Expect for the subject of this expectation.

Since
0.17.0