assertTrue(FirstThenSecondDoublesPairComparator.INSTANCE.compare(b, a) > 0);
assertTrue(FirstThenSecondDoublesPairComparator.INSTANCE.compare(b, b) == 0);
}
public void testCompare() {
final DoublesPair first = Pair.of(1.0, 3.0);
final DoublesPair second = Pair.of(1.0, 5.0);
final DoublesPair third = Pair.of(1.0, 6.0);
final DoublesPair fourth = Pair.of(2.0, 1.0);
final FirstThenSecondDoublesPairComparator test = new FirstThenSecondDoublesPairComparator();
assertTrue(test.compare(first, first) == 0);
assertTrue(test.compare(first, second) < 0);