Пример #1
0
 private void checkNotComparable(Interval x, Interval y) {
   try {
     x.compareTo(y);
     Assert.assertTrue(false);
   } catch (AssertionError e) {
     // expected
   }
 }
Пример #2
0
 private void check(Interval x, Interval y, int expected) {
   Assert.assertEquals(expected, sign(x.compareTo(y)));
 }