From dedcf295cc0f3291d27643be2592b5f6cc1a9176 Mon Sep 17 00:00:00 2001 From: fdai7753 Date: Thu, 8 Feb 2024 01:19:03 +0100 Subject: [PATCH] Finished wall doesn't obstruct ghost movement test, but commented out because of unimplemented code --- src/test/java/pacmanTests/GhostTest.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/test/java/pacmanTests/GhostTest.java b/src/test/java/pacmanTests/GhostTest.java index 399239a..319b083 100644 --- a/src/test/java/pacmanTests/GhostTest.java +++ b/src/test/java/pacmanTests/GhostTest.java @@ -54,9 +54,16 @@ class GhostTest { } @Test void Ghosts_wall_doesntobstructMovement() { - + // 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(1,2); + // act + //ghost.move(direction); + //Vector2 position = ghost.position; + // assert + //assertThat(position).isEqualTo(expectedPosition); } - - - } \ No newline at end of file