23 lines
473 B
Java
23 lines
473 B
Java
|
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));
|
||
|
}
|
||
|
|
||
|
}
|