Browse Source

Update Unit Test Snake

main
Justin Senn 2 years ago
parent
commit
1d09714b0e
  1. 11
      src/test/java/SnakeTest.java
  2. BIN
      target/classes/classpath.index
  3. BIN
      target/test-classes/AIGridGUITest.class
  4. BIN
      target/test-classes/classpath.index

11
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<Point> bodySegments = snake.getBodySegments();
Snake.SnakeDirection direction = Snake.SnakeDirection.UP;
}

BIN
target/classes/classpath.index

BIN
target/test-classes/AIGridGUITest.class

BIN
target/test-classes/classpath.index

Loading…
Cancel
Save