I was interested, in Kotlin there is an opportunity to call the equivalent of the java method:
assertEquals(double expected, double actual, double precision)
because every time I get this method,
assertEquals(expected: T, actual: T, message: String)
And I cannot find one that has an accuracy parameter. Calling Java should be fine too, I think.
My method call:
assertEquals(5000.00, calculateCouponAmount(basicFaceValue, basicInterestRate, amortizationBullet, couponNumber1), 0.01)
I get an error because 0.01 gets into the "message" field
source share