8990919293949596979899
@Test public void moveRight() { Entity entity = new Entity(0, 0); entity.moveRight(40); assertEquals(new Point(40, 0), entity.position); entity.moveRight(-61); assertEquals(new Point(-21, 0), entity.position); }
9293949596979899100101102
Entity entity = new Entity(0, 0); entity.moveRight(40); assertEquals(new Point(40, 0), entity.position); entity.moveRight(-61); assertEquals(new Point(-21, 0), entity.position); } @Test public void tick() {