From 0f0596821159d3d2d2d6afa166d3fb42341f797c Mon Sep 17 00:00:00 2001 From: Justin Senn Date: Wed, 8 Feb 2023 19:49:51 +0100 Subject: [PATCH] Update Unit Test Snake --- src/test/java/SnakeTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/SnakeTest.java b/src/test/java/SnakeTest.java index cc6f930..77a571b 100644 --- a/src/test/java/SnakeTest.java +++ b/src/test/java/SnakeTest.java @@ -27,7 +27,9 @@ class SnakeTest { @Test public void testIsSelfColliding() { + int gridSize = 20; + Snake snake = new Snake(gridSize); - + assertFalse(snake.isSelfColliding()); } }