package rebelsky.vec; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Some silly and fun tests. */ public class NewPointTest extends TestCase { public void testConstruct() { Point pt = new Point(2,3); assertTrue(pt.getX() == 2); assertTrue(pt.getY() == 3); } // testConstruct() public void testRotate() { Point pt = new Point(2,3); assertEquals("rotating by 2pi in increments", pt.rotate(Math.PI).rotate(Math.PI), pt); } // testRotate() } // class NewPointTest