import dodona.junit.TabTitle; import org.junit.Assert; import org.junit.Test; import java.util.Arrays; import java.util.List; @TabTitle("Small Test") public class SimpleTest { @Test public void SmallTest() { ElementBepalen solution = new KdeKleinsteElementBepalen(); Integer[] list1 = new Integer[]{1,3,4,5,7}; Integer[] list2 = new Integer[]{0,2,6,8,9}; for(int i = 0; i < 10; i++){ Assert.assertEquals("Het " + (i+1) + "de kleinste element van l1 = [1,3,4,5,7] ; l2 = [0,2,6,8,9] is " + i + ", jij gaf " + solution.kdeKleinsteElement(list1,list2,i), i,solution.kdeKleinsteElement(list1,list2,i+1)); } } }