infix fun <T : BigDecimal> Expect<T>.isEqualIncludingScale(expected: T): Expect<T>
(source)
Expects that the subject of this
expectation (a BigDecimal) is equal to expected including BigDecimal.scale.
Most of the time you want to use isNumericallyEqualTo which does not compare BigDecimal.scale in contrast to this function. Following the two functions compared:
expect(BigDecimal("10")).isEqualIncludingScale(BigDecimal("10.0"))
does not hold.expect(BigDecimal("10")).isNumericallyEqualTo(BigDecimal("10.0"))
holds.Return
an Expect for the subject of this
expectation.