package andmed2; import static org.junit.Assert.*; import org.junit.Test; public class AllikaTestid { @Test public void etteantudArvud() { ArvudeAllikas a1=new EtteantudArvudeAllikas(4.6, 2.3, 1.8, 5.6); assertArrayEquals(new double[]{4.6, 2.3, 1.8, 5.6}, a1.kysiArvud(), 0.01); } @Test public void jadaArvud(){ ArvudeAllikas a1=new ArvujadaAllikas(1, 2, 0.5); assertArrayEquals(new double[]{1, 1.5, 2}, a1.kysiArvud(), 0.01); } }