package p2rilus; import static org.junit.Assert.*; import org.junit.Test; import massiivid.TasandiPunkt; public class AsukohaTestid { @Test public void testX() { TasandiPunkt tp1=new TasandiPunkt(3, 4); assertEquals(3, tp1.getX()); } @Test public void testKaugus(){ TasandiPunkt tp1=new TasandiPunkt(3, 4); assertEquals(5, tp1.kaugusNullist(), 0.01); } }