|
|
@ -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() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |