7879808182838485868788
@Test public void moveLeft() { Entity entity = new Entity(0, 0); entity.moveLeft(51); assertEquals(new Point(-51, 0), entity.position); entity.moveLeft(-70); assertEquals(new Point(19, 0), entity.position); }
8182838485868788899091
Entity entity = new Entity(0, 0); entity.moveLeft(51); assertEquals(new Point(-51, 0), entity.position); entity.moveLeft(-70); assertEquals(new Point(19, 0), entity.position); } @Test public void moveRight() {