From fd2a77a54ec55168ac69da8fd63beb1a3702993f Mon Sep 17 00:00:00 2001 From: fdai7753 Date: Thu, 8 Feb 2024 00:11:11 +0100 Subject: [PATCH] Finished Ghost wall obstruction test, but commented out because of unimplemented code --- src/test/java/pacmanTests/GhostTest.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/test/java/pacmanTests/GhostTest.java b/src/test/java/pacmanTests/GhostTest.java index 897a14f..17fac9a 100644 --- a/src/test/java/pacmanTests/GhostTest.java +++ b/src/test/java/pacmanTests/GhostTest.java @@ -24,10 +24,20 @@ class GhostTest { // assert assertThat(position).isEqualTo(expectedPosition); } - @Test void Ghosts_wall_obstructsMovement() { - + // 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); } + } \ No newline at end of file