Exemplo n.º 1
0
 def test_one_way(self):
     lab = Labyrinth(LABYRINTH_3, start_point=(1, 1), wall=0, hole=1)
     self.assertEquals(lab.get_len_min_way(), 4)
Exemplo n.º 2
0
 def test_two_min_way(self):
     lab = Labyrinth(LABYRINTH_1, start_point=(1, 2), wall=0, hole=1)
     self.assertEqual(lab.get_len_min_way(), 3)
Exemplo n.º 3
0
 def test_no_exit(self):
     lab = Labyrinth(LABYRINTH_2, start_point=(1, 2), wall=0, hole=1)
     self.assertEquals(lab.get_len_min_way(), -1)