Esempio n. 1
0
 @Test
 public void testAdjacency15() {
   board.calcAdjacencies();
   LinkedList testList = board.getAdjList(15);
   Assert.assertTrue(testList.contains(14));
   Assert.assertTrue(testList.contains(11));
   Assert.assertEquals(2, testList.size());
 }
Esempio n. 2
0
 @Test
 public void testAdjacency8() {
   board.calcAdjacencies();
   LinkedList testList = board.getAdjList(8);
   Assert.assertTrue(testList.contains(9));
   Assert.assertTrue(testList.contains(4));
   Assert.assertTrue(testList.contains(12));
   Assert.assertEquals(3, testList.size());
 }