summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/tests
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-11-24 15:03:04 +0100
committerPacien TRAN-GIRARD2015-11-24 15:08:29 +0100
commitbda6db0eb45b4fb10d9644d9b7bf2699e17a0e5d (patch)
tree3b362344ad734a1542d1a07348bd7463ebcbb28e /src/ch/epfl/maze/tests
parent15ae5683367df9f32df301cfc66dcbe41d193208 (diff)
downloadmaze-solver-bda6db0eb45b4fb10d9644d9b7bf2699e17a0e5d.tar.gz
Keep method compatibility for tests
Diffstat (limited to 'src/ch/epfl/maze/tests')
-rw-r--r--src/ch/epfl/maze/tests/AnimalTest.java2
-rw-r--r--src/ch/epfl/maze/tests/GhostsTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ch/epfl/maze/tests/AnimalTest.java b/src/ch/epfl/maze/tests/AnimalTest.java
index 0b02442..1fd8943 100644
--- a/src/ch/epfl/maze/tests/AnimalTest.java
+++ b/src/ch/epfl/maze/tests/AnimalTest.java
@@ -79,7 +79,7 @@ public class AnimalTest extends TestCase {
79 } 79 }
80 80
81 @Override 81 @Override
82 public Direction move(Set<Direction> choices) { 82 public Direction move(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 c6970b1..35dddbf 100644
--- a/src/ch/epfl/maze/tests/GhostsTest.java
+++ b/src/ch/epfl/maze/tests/GhostsTest.java
@@ -128,7 +128,7 @@ public class GhostsTest extends TestCase {
128 } 128 }
129 129
130 @Override 130 @Override
131 public Direction move(Set<Direction> choices, Daedalus daedalus) { 131 public Direction move(Direction[] choices, Daedalus daedalus) {
132 if (mMoves) { 132 if (mMoves) {
133 return getPosition().getX() % 2 == 0 ? Direction.RIGHT : Direction.LEFT; 133 return getPosition().getX() % 2 == 0 ? Direction.RIGHT : Direction.LEFT;
134 } 134 }