assertEquals(Direction.DOWN, part.direction);
}
@Test
public void move() {
BodyPart part = new BodyPart(0, 0);
Point position = new Point(0, 0);
part.direction = Direction.DOWN;
part.move(1);
position.y += 1;
assertEquals(position, part.position);
part.direction = Direction.RIGHT;
part.move(5);
position.x += 5;
assertEquals(position, part.position);
part.direction = Direction.UP;
part.move(3);
position.y -= 3;
assertEquals(position, part.position);
part.direction = Direction.LEFT;
part.move(2);
position.x -= 2;
assertEquals(position, part.position);
}