Solver solver = new Solver();
IntVar var = Max.var(VariableFactory.enumerated("a", new int[]{3, 4}, solver), VariableFactory.enumerated("b", new int[]{2, 5}, solver));
DisposableRangeIterator vit = var.getRangeIterator(true);
Assert.assertTrue(vit.hasNext());
Assert.assertEquals(3, vit.min());
Assert.assertEquals(5, vit.max());
vit.next();
Assert.assertFalse(vit.hasNext());
}
@Test(groups = "1s")