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

notToEqualIncludingScale

fun <T : BigDecimal> Expect<T>.notToEqualIncludingScale(expected: T): Expect<T> (source)

Expects that the subject of this expectation (a BigDecimal) is not equal to expected including BigDecimal.scale.

Most of the time you want to use notToEqualNumerically which does not compare BigDecimal.scale in contrast to this function. Following the two functions compared:

expect(BigDecimal("10")).notToEqualIncludingScale(BigDecimal("10.0"))
expect(BigDecimal("456.0")).notToEqualIncludingScale(BigDecimal("456"))
expect(BigDecimal("-1.456")).notToEqualIncludingScale(BigDecimal("-1.45"))

expect(BigDecimal(10)).notToEqualIncludingScale(BigDecimal(10.01))
expect(BigDecimal(456.01)).notToEqualIncludingScale(BigDecimal(456))
expect(BigDecimal(-1.456)).notToEqualIncludingScale(BigDecimal(-1.45))

Return
an Expect for the subject of this expectation.

Since
0.17.0