diff --git a/src/test/java/pacmanTests/GhostTest.java b/src/test/java/pacmanTests/GhostTest.java index 3a2708d..c4cfb8c 100644 --- a/src/test/java/pacmanTests/GhostTest.java +++ b/src/test/java/pacmanTests/GhostTest.java @@ -93,12 +93,10 @@ class GhostTest { gameManager.ghosts[0].position = new Vector2(25, 1); // act - gameManager.ghosts[0].move(); - gameManager.ghosts[0].move(); - gameManager.ghosts[0].move(); - gameManager.ghosts[0].move(); - gameManager.ghosts[0].move(); - gameManager.ghosts[0].move(); + for(int i = 0; i < 6; i++) { + gameManager.ghosts[0].move(); + } + Vector2 ghostPos = gameManager.ghosts[0].position; // assert