示例#1
0
 @Test
 public void testTargets0_1() {
   board.calcTargets(0, 1);
   board.printTargets(0, 1);
   TreeSet targets = board.getTargets();
   Assert.assertEquals(2, targets.size());
   Assert.assertTrue(targets.contains(1));
   Assert.assertTrue(targets.contains(4));
 }
示例#2
0
 @Test
 public void testTargets0_2() {
   board.calcTargets(0, 2);
   board.printTargets(0, 2);
   TreeSet targets = board.getTargets();
   Assert.assertEquals(3, targets.size());
   Assert.assertTrue(targets.contains(2));
   Assert.assertTrue(targets.contains(5));
   Assert.assertTrue(targets.contains(8));
 }
示例#3
0
 @Test
 public void testTargets0_5() {
   board.calcTargets(0, 5);
   board.printTargets(0, 5);
   TreeSet targets = board.getTargets();
   Assert.assertEquals(8, targets.size());
   Assert.assertTrue(targets.contains(1));
   Assert.assertTrue(targets.contains(3));
   Assert.assertTrue(targets.contains(4));
   Assert.assertTrue(targets.contains(6));
   Assert.assertTrue(targets.contains(9));
   Assert.assertTrue(targets.contains(11));
   Assert.assertTrue(targets.contains(12));
   Assert.assertTrue(targets.contains(14));
 }