From ca903127090fa5a7082e0b7e0ee8d12ea691812f Mon Sep 17 00:00:00 2001 From: fdai7012 Date: Thu, 8 Feb 2024 04:14:35 +0100 Subject: [PATCH] refactoring: optimizations --- src/test/java/pacmanTests/GameManagerTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/pacmanTests/GameManagerTest.java b/src/test/java/pacmanTests/GameManagerTest.java index 928c9c7..1b093b0 100644 --- a/src/test/java/pacmanTests/GameManagerTest.java +++ b/src/test/java/pacmanTests/GameManagerTest.java @@ -17,11 +17,10 @@ class GameManagerTest { // act - int initialTime = gameManager.time; + int expectedUpdatedTime = gameManager.time + 1; gameManager.Update(); int updatedTime = gameManager.time; - int expectedUpdatedTime = initialTime + 1; // assert assertThat(expectedUpdatedTime).isEqualTo(updatedTime);