assertTrue(comparator.compare(ac, ba) < 0);
assertTrue(comparator.compare(ba, ba) == 0);
}
public void testEquals() {
IntDoublePair a = new IntDoublePair(1, 2.0);
IntDoublePair b = new IntDoublePair(1, 3.0);
IntDoublePair c = new IntDoublePair(2, 2.0);
IntDoublePair d = new IntDoublePair(2, 3.0);
assertEquals(true, a.equals(a));
assertEquals(false, a.equals(b));
assertEquals(false, a.equals(c));
assertEquals(false, a.equals(d));
assertEquals(false, b.equals(a));
assertEquals(true, b.equals(b));
assertEquals(false, b.equals(c));
assertEquals(false, b.equals(d));
assertEquals(false, c.equals(a));
assertEquals(false, c.equals(b));
assertEquals(true, c.equals(c));
assertEquals(false, c.equals(d));
assertEquals(false, d.equals(a));
assertEquals(false, d.equals(b));
assertEquals(false, d.equals(c));
assertEquals(true, d.equals(d));
}