From 0982b2fd9b1bed4d5d666171bbf7ddcfcc8c0ad2 Mon Sep 17 00:00:00 2001 From: fdai7012 Date: Thu, 8 Feb 2024 17:37:23 +0100 Subject: [PATCH] removed old Test --- src/test/java/pacmanTests/GhostTest.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/test/java/pacmanTests/GhostTest.java b/src/test/java/pacmanTests/GhostTest.java index 319b083..1c60e93 100644 --- a/src/test/java/pacmanTests/GhostTest.java +++ b/src/test/java/pacmanTests/GhostTest.java @@ -10,20 +10,7 @@ import pacmanGame.*; class GhostTest { - @Test - void Ghosts_moving_changesPosition() { - // 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(3,2); - // act - ghost.move(direction); - Vector2 position = ghost.position; - // assert - assertThat(position).isEqualTo(expectedPosition); - } + @Test void Ghosts_moving_doesntchangePosition() { // arrange