summaryrefslogtreecommitdiff
path: root/src/ch/epfl/maze/tests/ZooTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl/maze/tests/ZooTest.java')
-rw-r--r--src/ch/epfl/maze/tests/ZooTest.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/ch/epfl/maze/tests/ZooTest.java b/src/ch/epfl/maze/tests/ZooTest.java
index 04b6a79..03a84b3 100644
--- a/src/ch/epfl/maze/tests/ZooTest.java
+++ b/src/ch/epfl/maze/tests/ZooTest.java
@@ -12,7 +12,6 @@ import org.junit.Test;
12/** 12/**
13 * Test cases for animals implementation. 13 * Test cases for animals implementation.
14 */ 14 */
15
16public class ZooTest extends TestCase { 15public class ZooTest extends TestCase {
17 16
18 public static final boolean DEBUG = false; 17 public static final boolean DEBUG = false;
@@ -22,7 +21,6 @@ public class ZooTest extends TestCase {
22 * <p> 21 * <p>
23 * The Mouse should go forward and never retrace its steps. 22 * The Mouse should go forward and never retrace its steps.
24 */ 23 */
25
26 @Test 24 @Test
27 public void testMouse() { 25 public void testMouse() {
28 int[][] labyrinth = LabyrinthGenerator.getDebugMouse(); 26 int[][] labyrinth = LabyrinthGenerator.getDebugMouse();
@@ -42,7 +40,6 @@ public class ZooTest extends TestCase {
42 * <p> 40 * <p>
43 * The Hamster should never revisit a dead-end it has already visited. 41 * The Hamster should never revisit a dead-end it has already visited.
44 */ 42 */
45
46 @Test 43 @Test
47 public void testHamster() { 44 public void testHamster() {
48 int[][] labyrinth = LabyrinthGenerator.getDebugHamster(); 45 int[][] labyrinth = LabyrinthGenerator.getDebugHamster();
@@ -62,7 +59,6 @@ public class ZooTest extends TestCase {
62 * <p> 59 * <p>
63 * The Monkey should go directly to the exit without taking any dead-end. 60 * The Monkey should go directly to the exit without taking any dead-end.
64 */ 61 */
65
66 @Test 62 @Test
67 public void testMonkey() { 63 public void testMonkey() {
68 int[][] labyrinth = LabyrinthGenerator.getDebugMonkey(); 64 int[][] labyrinth = LabyrinthGenerator.getDebugMonkey();
@@ -84,7 +80,6 @@ public class ZooTest extends TestCase {
84 * it loops infinitely in this maze, it means that it does not properly 80 * it loops infinitely in this maze, it means that it does not properly
85 * count the turns it makes. 81 * count the turns it makes.
86 */ 82 */
87
88 @Test 83 @Test
89 public void testBear1() { 84 public void testBear1() {
90 int[][] labyrinth = LabyrinthGenerator.getDebugBear1(); 85 int[][] labyrinth = LabyrinthGenerator.getDebugBear1();
@@ -105,7 +100,6 @@ public class ZooTest extends TestCase {
105 * If the Bear loops infinitely in this maze, it means that it does not 100 * If the Bear loops infinitely in this maze, it means that it does not
106 * properly count the turns it makes. 101 * properly count the turns it makes.
107 */ 102 */
108
109 @Test 103 @Test
110 public void testBear2() { 104 public void testBear2() {
111 int[][] labyrinth = LabyrinthGenerator.getDebugBear2(); 105 int[][] labyrinth = LabyrinthGenerator.getDebugBear2();
@@ -126,7 +120,6 @@ public class ZooTest extends TestCase {
126 * When the Panda comes back to the intersection, then it must leave the 120 * When the Panda comes back to the intersection, then it must leave the
127 * position marked once and go back into the loop. 121 * position marked once and go back into the loop.
128 */ 122 */
129
130 @Test 123 @Test
131 public void testPanda1() { 124 public void testPanda1() {
132 int[][] labyrinth = LabyrinthGenerator.getDebugPanda1(); 125 int[][] labyrinth = LabyrinthGenerator.getDebugPanda1();
@@ -147,7 +140,6 @@ public class ZooTest extends TestCase {
147 * The Panda must mark the intersection twice only the very last time it 140 * The Panda must mark the intersection twice only the very last time it
148 * walks on it. 141 * walks on it.
149 */ 142 */
150
151 @Test 143 @Test
152 public void testPanda2() { 144 public void testPanda2() {
153 int[][] labyrinth = LabyrinthGenerator.getDebugPanda2(); 145 int[][] labyrinth = LabyrinthGenerator.getDebugPanda2();
@@ -167,7 +159,6 @@ public class ZooTest extends TestCase {
167 * <p> 159 * <p>
168 * The Bear should leave the maze while the Monkey should loop infinitely. 160 * The Bear should leave the maze while the Monkey should loop infinitely.
169 */ 161 */
170
171 @Test 162 @Test
172 public void testBearVsMonkey() { 163 public void testBearVsMonkey() {
173 int[][] labyrinth = LabyrinthGenerator.getBearVsMonkey(); 164 int[][] labyrinth = LabyrinthGenerator.getBearVsMonkey();
@@ -188,7 +179,6 @@ public class ZooTest extends TestCase {
188 * The Panda should leave the maze earlier than the Hamster with a higher 179 * The Panda should leave the maze earlier than the Hamster with a higher
189 * probability than the Hamster. 180 * probability than the Hamster.
190 */ 181 */
191
192 @Test 182 @Test
193 public void testPandaVsHamster() { 183 public void testPandaVsHamster() {
194 int[][] labyrinth = LabyrinthGenerator.getPandaVsHamster(); 184 int[][] labyrinth = LabyrinthGenerator.getPandaVsHamster();
@@ -202,4 +192,5 @@ public class ZooTest extends TestCase {
202 Display display = new Display(simulation); 192 Display display = new Display(simulation);
203 display.run(); 193 display.run();
204 } 194 }
195
205} 196}