for (int i = 0; i < 10000; ++i) {
int a = rnd.nextInt(values.length),
b = rnd.nextInt(values.length);
DateValue dvA = values[a], dvB = values[b];
assertEquals(a == b, dvA.equals(dvB));
assertEquals(dvA.equals(dvB), 0 == dvA.compareTo(dvB));
}
}
}
public void testToString() throws Exception {