https://kotlinlang.org logo
#atrium
Title
# atrium
d

dave08

07/23/2018, 7:25 AM
I have a funny problem... I have the proper context in
isNotNull
(the IDE shows it), but
toBe
is resolved to
@kotlin.Deprecated public fun <T : java.math.BigDecimal> ch.tutteli.atrium.creating.Assert<T>
, so I get an error that my type is not derived from BigDecimal...?
r

robstoll

07/23/2018, 5:40 PM
also pay attention if you compare BigDecimal with
toBe
. You are comparing it including scale. I suggest you switch to
isEqualIncludingScale
in case you want to compare it including scale or to
isNumericallyEqualTo
4 Views