summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl/maze/tests')
-rw-r--r--src/ch/epfl/maze/tests/AnimalTest.java6
-rw-r--r--src/ch/epfl/maze/tests/GhostsTest.java4
2 files changed, 6 insertions, 4 deletions
diff --git a/src/ch/epfl/maze/tests/AnimalTest.java b/src/ch/epfl/maze/tests/AnimalTest.java
index 67c27e5..0b02442 100644
--- a/src/ch/epfl/maze/tests/AnimalTest.java
+++ b/src/ch/epfl/maze/tests/AnimalTest.java
@@ -6,10 +6,10 @@ import ch.epfl.maze.util.Vector2D;
6import junit.framework.TestCase; 6import junit.framework.TestCase;
7import org.junit.Test; 7import org.junit.Test;
8 8
9import java.util.Set;
10
9/** 11/**
10 * Test case for {@code Animal} implementation. 12 * Test case for {@code Animal} implementation.
11 *
12 * @author EPFL
13 */ 13 */
14public class AnimalTest extends TestCase { 14public class AnimalTest extends TestCase {
15 15
@@ -79,7 +79,7 @@ public class AnimalTest extends TestCase {
79 } 79 }
80 80
81 @Override 81 @Override
82 public Direction move(Direction[] choices) { 82 public Direction move(Set<Direction> choices) {
83 return null; 83 return null;
84 } 84 }
85 85
diff --git a/src/ch/epfl/maze/tests/GhostsTest.java b/src/ch/epfl/maze/tests/GhostsTest.java
index 2195443..c6970b1 100644
--- a/src/ch/epfl/maze/tests/GhostsTest.java
+++ b/src/ch/epfl/maze/tests/GhostsTest.java
@@ -16,6 +16,8 @@ import ch.epfl.maze.util.Vector2D;
16import junit.framework.TestCase; 16import junit.framework.TestCase;
17import org.junit.Test; 17import org.junit.Test;
18 18
19import java.util.Set;
20
19/** 21/**
20 * Test suite for ghosts implementation. 22 * Test suite for ghosts implementation.
21 * 23 *
@@ -126,7 +128,7 @@ public class GhostsTest extends TestCase {
126 } 128 }
127 129
128 @Override 130 @Override
129 public Direction move(Direction[] choices, Daedalus daedalus) { 131 public Direction move(Set<Direction> choices, Daedalus daedalus) {
130 if (mMoves) { 132 if (mMoves) {
131 return getPosition().getX() % 2 == 0 ? Direction.RIGHT : Direction.LEFT; 133 return getPosition().getX() % 2 == 0 ? Direction.RIGHT : Direction.LEFT;
132 } 134 }