Pair<Integer, Double> b = Pair.of(Integer.valueOf(1), Double.valueOf(1.7d));
assertEquals(a.hashCode(), b.hashCode());
}
public void testHashCode_value() {
IntDoublePair a = new IntDoublePair(1, 2.0);
assertEquals(a.hashCode(), a.hashCode());
assertEquals(Integer.valueOf(1).hashCode() ^ Double.valueOf(2.0).hashCode(), a.hashCode());
// can't test for different hash codes as they might not be different
}