org.junit.Assert.assertEquals(meet, Interval.BOTTOM);
}
@Test
public void testWiden() {
Interval widen = new Interval(1,2).widen(new Interval(1,2));
org.junit.Assert.assertEquals(widen.getLeft(), 1, 0);
org.junit.Assert.assertEquals(widen.getRight(), 2, 0);
widen = new Interval(1,5).widen(new Interval(1,3));
org.junit.Assert.assertEquals(widen.getLeft(), 1, 0);
org.junit.Assert.assertEquals(widen.getRight(), 5, 0);
widen = new Interval(0,5).widen(new Interval(1,3));
org.junit.Assert.assertEquals(widen.getLeft(), 0, 0);
org.junit.Assert.assertEquals(widen.getRight(), 5, 0);
widen = Interval.BOTTOM.widen(new Interval(1,3));
org.junit.Assert.assertEquals(widen.getLeft(), 1, 0);
org.junit.Assert.assertEquals(widen.getRight(), 3, 0);
widen = new Interval(1,3).widen(new Interval(1,5));
org.junit.Assert.assertEquals(widen.getLeft(), 1, 0);
org.junit.Assert.assertEquals(widen.getRight(), Double.POSITIVE_INFINITY, 0);
widen = new Interval(1,3).widen(new Interval(0,2));
org.junit.Assert.assertEquals(widen.getLeft(), Double.NEGATIVE_INFINITY, 0);
org.junit.Assert.assertEquals(widen.getRight(), 3, 0);
widen = new Interval(1,3).widen(new Interval(0,5));
org.junit.Assert.assertEquals(widen.getLeft(), Double.NEGATIVE_INFINITY, 0);
org.junit.Assert.assertEquals(widen.getRight(), Double.POSITIVE_INFINITY, 0);
}