TP-programmation-orientee-o.../TP15/exercices/TestRangeParametresOptionnels.java

23 lines
473 B
Java
Raw Normal View History

2023-06-20 19:02:09 +00:00
package exercices;
import org.junit.*;
import static org.junit.Assert.*;
import static exercices.Range.range;
import java.util.NoSuchElementException;
import java.util.Iterator;
/** Classe de test de la classe {@ Range}. */
public class TestRangeParametresOptionnels {
@Test
public void testBonusRangeSansPas() {
TestRange.verifierRange(5, 15, 1, range(5, 15));
}
@Test
public void testBonusRangeFinSeule() {
TestRange.verifierRange(0, 7, 1, range(7));
}
}