Description
The following test fails:
BigDecimal testInstance = BigDecimal.TEN.multiply(new BigDecimal("0.1"));
int result = testInstance.compareTo(new BigDecimal("1.00"));
assertEquals(0, result);
I expect 'result' to be 0, but am obtaining -1.
The following test fails:
BigDecimal testInstance = BigDecimal.TEN.multiply(new BigDecimal("0.1"));
int result = testInstance.compareTo(new BigDecimal("1.00"));
assertEquals(0, result);
I expect 'result' to be 0, but am obtaining -1.