From c22395d7301faf753757df0f869d7cb6dca24c8e Mon Sep 17 00:00:00 2001 From: Justin Senn Date: Wed, 8 Feb 2023 19:48:58 +0100 Subject: [PATCH] Update Unit Test Snake --- src/test/java/SnakeTest.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/test/java/SnakeTest.java b/src/test/java/SnakeTest.java index 8f8a6da..cc6f930 100644 --- a/src/test/java/SnakeTest.java +++ b/src/test/java/SnakeTest.java @@ -1,12 +1,14 @@ import Snake.Snake; +import org.junit.jupiter.api.Test; import java.awt.*; import java.util.ArrayList; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; class SnakeTest { - + @Test public void testReset() { int gridSize = 20; Snake snake = new Snake(gridSize); @@ -23,5 +25,9 @@ class SnakeTest { } + @Test + public void testIsSelfColliding() { + + } }