crooy/ApiDesignCursus — Issue #1: Precision problems...
Author: FreekMank
Created: 2011-11-30 15:13:19+00:00
State: open

the next test passes, but should fail, because the result should be higher than 20 SKK

public void testExchangeSKKCZK() throws Exception {
Calculator c = createSKKtoCZK();
// convert 16CZK using c:
// assertEquals("Result is 20 SKK");
assertEquals(20.0, c.convert("CZK", "SKK", 16.000000000000001));
|