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

isEqualComparingTo

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

Expects that the subject of this expectation is equal to expected where the comparison is carried out with Comparable.compareTo.

expect(2) isEqualComparingTo 2

fails {
    expect(1) isEqualComparingTo 2
    expect(2) isEqualComparingTo 1
}

Return
an Expect for the subject of this expectation.

Since
0.13.0