Exemple #1
0
 @Test
 public void test_isMarkedRed6() {
   v.mark(6, AntColour.Red);
   assertTrue(v.isMarked(AntColour.Red, 6));
 }
Exemple #2
0
 @Test
 public void test_isMarkedRed4() {
   v.mark(4, AntColour.Red);
   assertTrue(v.isMarked(AntColour.Red, 4));
 }
Exemple #3
0
 @Test
 public void test_isMarkedRed5() {
   v.mark(5, AntColour.Red);
   assertTrue(v.isMarked(AntColour.Red, 5));
 }
Exemple #4
0
 @Test
 public void test_isMarkedRed2() {
   v.mark(2, AntColour.Red);
   assertTrue(v.isMarked(AntColour.Red, 2));
 }
Exemple #5
0
 @Test
 public void test_isMarkedRed3() {
   v.mark(3, AntColour.Red);
   assertTrue(v.isMarked(AntColour.Red, 3));
 }
Exemple #6
0
 @Test
 public void test_isMarkedBlack6() {
   v.mark(6, AntColour.Black);
   assertTrue(v.isMarked(AntColour.Black, 6));
 }
Exemple #7
0
 // Start of red marker tests
 @Test
 public void test_isMarkedRed1() {
   v.mark(1, AntColour.Red);
   assertTrue(v.isMarked(AntColour.Red, 1));
 }
Exemple #8
0
 @Test
 public void test_isMarkedBlack4() {
   v.mark(4, AntColour.Black);
   assertTrue(v.isMarked(AntColour.Black, 4));
 }
Exemple #9
0
 @Test
 public void test_isMarkedBlack5() {
   v.mark(5, AntColour.Black);
   assertTrue(v.isMarked(AntColour.Black, 5));
 }
Exemple #10
0
 @Test
 public void test_isMarkedBlack3() {
   v.mark(3, AntColour.Black);
   assertTrue(v.isMarked(AntColour.Black, 3));
 }
Exemple #11
0
 @Test
 public void test_isMarkedBlack2() {
   v.mark(2, AntColour.Black);
   assertTrue(v.isMarked(AntColour.Black, 2));
 }
Exemple #12
0
 // Start of black marker tests
 @Test
 public void test_isMarkedBlack1() {
   v.mark(1, AntColour.Black);
   assertTrue(v.isMarked(AntColour.Black, 1));
 }
Exemple #13
0
 @Test
 public void test_checkConditionRedMarker() {
   c.mark(4, AntColour.Red);
   assertTrue(c.checkCondition(Condition.RedMarker) == true);
 }
Exemple #14
0
 @Test
 public void test_checkConditionBlackMarker() {
   c.mark(2, AntColour.Black);
   assertTrue(c.checkCondition(Condition.BlackMarker) == true);
 }