|
@ -1,12 +1,14 @@ |
|
|
import Snake.Snake; |
|
|
import Snake.Snake; |
|
|
|
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
|
import java.awt.*; |
|
|
import java.awt.*; |
|
|
import java.util.ArrayList; |
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertEquals; |
|
|
import static org.junit.jupiter.api.Assertions.assertEquals; |
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertFalse; |
|
|
|
|
|
|
|
|
class SnakeTest { |
|
|
class SnakeTest { |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
public void testReset() { |
|
|
public void testReset() { |
|
|
int gridSize = 20; |
|
|
int gridSize = 20; |
|
|
Snake snake = new Snake(gridSize); |
|
|
Snake snake = new Snake(gridSize); |
|
@ -23,5 +25,9 @@ class SnakeTest { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
public void testIsSelfColliding() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |