From 1d09714b0e707c69b5141f846001b21d7959afb3 Mon Sep 17 00:00:00 2001 From: Justin Senn Date: Wed, 8 Feb 2023 19:44:58 +0100 Subject: [PATCH] Update Unit Test Snake --- src/test/java/SnakeTest.java | 11 +++++++++++ target/classes/classpath.index | Bin 230 -> 0 bytes target/test-classes/AIGridGUITest.class | Bin 672 -> 1271 bytes target/test-classes/classpath.index | Bin 96 -> 0 bytes 4 files changed, 11 insertions(+) delete mode 100644 target/classes/classpath.index delete mode 100644 target/test-classes/classpath.index diff --git a/src/test/java/SnakeTest.java b/src/test/java/SnakeTest.java index 834f65f..3695992 100644 --- a/src/test/java/SnakeTest.java +++ b/src/test/java/SnakeTest.java @@ -1,6 +1,17 @@ +import Snake.Snake; + +import java.awt.*; +import java.util.ArrayList; + class SnakeTest { public void testReset() { + int gridSize = 20; + Snake snake = new Snake(gridSize); + snake.reset(); + + ArrayList bodySegments = snake.getBodySegments(); + Snake.SnakeDirection direction = Snake.SnakeDirection.UP; } diff --git a/target/classes/classpath.index b/target/classes/classpath.index deleted file mode 100644 index 674a749cb72a387a028a406035bc08a3d7e87b28..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 230 zcmb1OU}0cjU<6_qP-1^jv#RyHMPZbpSdA5L!wg;Cl{2Dqr^Dps_OE*2ciWLW1SY_6 zQ3uXs$e+N#5ac0v1R=t}a7GlF$H4HH)1eU}qET@t0mKsZx^kL<;mTtMhVs+y fDH&lhtAl~TuXAE{(mMu*m2VjsrmZMB$iM&q&L%e( diff --git a/target/test-classes/AIGridGUITest.class b/target/test-classes/AIGridGUITest.class index cc50bade1ca972ed0bb09ec8cc84cd0cbea744bf..073325ff600470d7b2f75da47b7e4737bf6dd72c 100644 GIT binary patch literal 1271 zcmbVL=}r?-6#i~ox;eB%sbwphEOrs<8h=1ZK!r3J)UY)1=d_G)$uLu=Q+zHH1*3@% z;6oX|J1vD05);$(_TF>P{g!i1fB*UM3qTbwk_aIjLqx+6q5}GboZYn)n5 zUm&_J9qDffgbT%b3~_<%mg)PpwSOX8mCf3YCy#axYe~eAR4DfZh6=S>v7W#%QZb}8 z=ok?g?x!ADZQ>?O*?TIGGwy<1Q<$R~vbawfXYRRm*b;~oYDKb*VLXNj4U>v+&h?Hf zryc6#+LFHIRm_&GY_{8$=S$aV3utC=c=M@a+HD1#*D$Ss;|ln-``J;!Sq*b4m{7qz zd3@rl=mQN4{ZzyHNcE9d?vW*sHl$;{?VL3%@4#%>jARVAY1(zulj__HM*I^=4QXSb z25SOiK5MZXINNr;x@pU!n$zm2vU^s$V{;>F0uy^3$CqbTUA84rHyy|I&7QHmakqI@ zWin`249a5fs3fY_Y|7Pb;Ppm!*JVmwzqie1&}=$L?zH5E>VTV7H9DAQ(?c9B z!7tm+HOf6_i|Zm!TimO=Z0QoB^b@fUdQwkbBJmB{7sf+a;;N<+EPMnBEOV!I-{2t% zJP8zu7Ygup`KxkAN?)PrFE5Z;*H@;#BXM_z^Re z)Rll{wNK+wN`$dVr8pj^UPDh-%lQjTZRqLg0lpk90;A;1k~PQOI41Z}MoL|jKCd1W ziGARwLIojaceR9XX?fh&(jbO%G=8IcMmc(cnQAOQpd=Hp