From 23dd94c88d063e6fb713c3874bcd334a743cbf5e Mon Sep 17 00:00:00 2001 From: fdai7012 Date: Thu, 8 Feb 2024 04:22:31 +0100 Subject: [PATCH] refactoring: fixed suspicious recurring typo --- src/test/java/pacmanTests/PlayerTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/test/java/pacmanTests/PlayerTest.java b/src/test/java/pacmanTests/PlayerTest.java index e30ea0f..f5c126b 100644 --- a/src/test/java/pacmanTests/PlayerTest.java +++ b/src/test/java/pacmanTests/PlayerTest.java @@ -55,12 +55,12 @@ class PlayerTest { Player player = gameManager.player; player.position = new Vector2(1,1); player.direction = new Vector2(-1,0); - Vector2 expectedDdirection = new Vector2(0,1); + Vector2 expectedDirection = new Vector2(0,1); // act player.processInput('w'); Vector2 direction = player.direction; // assert - assertThat(direction).isEqualTo(expectedDdirection); + assertThat(direction).isEqualTo(expectedDirection); } @Test @@ -78,12 +78,12 @@ class PlayerTest { Player player = gameManager.player; player.position = new Vector2(1,1); player.direction = new Vector2(-1,0); - Vector2 expectedDdirection = new Vector2(0,-1); + Vector2 expectedDirection = new Vector2(0,-1); // act player.processInput('s'); Vector2 direction = player.direction; // assert - assertThat(direction).isEqualTo(expectedDdirection); + assertThat(direction).isEqualTo(expectedDirection); } @Test @@ -101,12 +101,12 @@ class PlayerTest { Player player = gameManager.player; player.position = new Vector2(1,1); player.direction = new Vector2(-1,0); - Vector2 expectedDdirection = new Vector2(-1,0); + Vector2 expectedDirection = new Vector2(-1,0); // act player.processInput('a'); Vector2 direction = player.direction; // assert - assertThat(direction).isEqualTo(expectedDdirection); + assertThat(direction).isEqualTo(expectedDirection); } @Test @@ -124,12 +124,12 @@ class PlayerTest { Player player = gameManager.player; player.position = new Vector2(1,1); player.direction = new Vector2(-1,0); - Vector2 expectedDdirection = new Vector2(1,0); + Vector2 expectedDirection = new Vector2(1,0); // act player.processInput('d'); Vector2 direction = player.direction; // assert - assertThat(direction).isEqualTo(expectedDdirection); + assertThat(direction).isEqualTo(expectedDirection); }