assertFalse(instance.equals(new Double(1.51)));
}
public void testCompareWithDoubleWithPrecision() {
System.out.println("testCompareWithDoubleWithPrecision");
assertTrue(instance.equals(new DoubleWithPrecision(1.0, 0.01)));
assertTrue(instance.equals(new DoubleWithPrecision(0.49, 0.01)));
assertTrue(instance.equals(new DoubleWithPrecision(1.51, 0.01)));
assertFalse(instance.equals(new DoubleWithPrecision(0.4, 0.01)));
assertFalse(instance.equals(new DoubleWithPrecision(1.6, 0.01)));
}