From 13807297fbaf26e837cb800f0b7a42d59e3b3529 Mon Sep 17 00:00:00 2001 From: Justin Senn Date: Wed, 8 Feb 2023 19:59:10 +0100 Subject: [PATCH] Final Update Unit Test Snake --- src/test/java/SnakeTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/SnakeTest.java b/src/test/java/SnakeTest.java index 4d18755..6c79afc 100644 --- a/src/test/java/SnakeTest.java +++ b/src/test/java/SnakeTest.java @@ -55,6 +55,9 @@ class SnakeTest { assertEquals(new Point(gridSize / 2, gridSize / 2), bodySegments.get(0)); assertEquals(new Point(gridSize / 2 + 1, gridSize / 2), bodySegments.get(1)); + snake.setDirection(Snake.SnakeDirection.UP); + snake.update(); + }