diff --git a/src/test/java/pacmanTests/VisualizerPlainTextUltraTest.java b/src/test/java/pacmanTests/VisualizerPlainTextUltraTest.java index afbc632..0f2953c 100644 --- a/src/test/java/pacmanTests/VisualizerPlainTextUltraTest.java +++ b/src/test/java/pacmanTests/VisualizerPlainTextUltraTest.java @@ -117,12 +117,13 @@ class VisualizerPlainTextUltraTest { gameManager.score = 100; + String expected = "\nSCORE: 100"; // act vptu.Update(); String result = (String)vptu.GetOutput(); // assert - assertThat(result).startsWith("\nSCORE: 100"); + assertThat(result).startsWith(expected); } @Test