mercredi 9 août 2017

How to call assertEquals with Double Epsilon/Precision in Kotlin?

Goodmorning everybody!

I was wondering, in Kotlin, is there the possibility to call the equivalent of the java method:

assertEquals(double expected, double actual, double precision)

because everytime I'm getting this method instead

assertEquals(expected: T, actual: T, message: String)

And i can't find the one with the precision parameter. Calling the Java one should be fine too I guess.

Thanks! :)

Aucun commentaire:

Enregistrer un commentaire