From bfa3fd9e6030c6960dbbce4d4dd974cc3e0c7b51 Mon Sep 17 00:00:00 2001 From: fdai7753 Date: Thu, 8 Feb 2024 00:32:01 +0100 Subject: [PATCH] Finished Ghost moving doesn't change position test, but commented out because of unimplemented code --- src/test/java/pacmanTests/GhostTest.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/test/java/pacmanTests/GhostTest.java b/src/test/java/pacmanTests/GhostTest.java index 0e066b2..99e515c 100644 --- a/src/test/java/pacmanTests/GhostTest.java +++ b/src/test/java/pacmanTests/GhostTest.java @@ -26,7 +26,17 @@ class GhostTest { } @Test void Ghosts_moving_doesntchangePosition() { - + // arrange + //GameManager gameManager = new GameManager(); + //Ghost ghost = gameManager.ghosts[0]; + //ghost.position = new Vector2(2,2); + //Vector2 direction = new Vector2(1,0); + //Vector2 expectedPosition = new Vector2(2,2); + // act + //ghost.move(direction); + //Vector2 position = ghost.position; + // assert + //assertThat(position).isEqualTo(expectedPosition); } @Test void Ghosts_wall_obstructsMovement() {