infix fun <T : Comparable<T>> Expect<T>.toBeEqualComparingTo(expected: T): Expect<T>
(source)
Expects that the subject of this
expectation is equal to expected
where the comparison is carried out with Comparable.compareTo.
Use toEqual if you want a comparison based on Any.equals.
expect(2) toBeEqualComparingTo 2
fails {
expect(1) toBeEqualComparingTo 2
expect(2) toBeEqualComparingTo 1
}
Return
an Expect for the subject of this
expectation.
Since
0.17.0