示例#1
0
 def test_MazeFacade_mayMove_SamePoint(self):
     mazeFacade = MazeFacade(self.__mazeparser)
     self.assertTrue(mazeFacade.MayMove(src=Position(0,0),dst=Position(0,0)))
示例#2
0
 def test_MazeFacade_mayMove_False_Node_Not_InGrpah(self):
     mazeFacade = MazeFacade(self.__mazeparser)
     self.assertFalse(mazeFacade.MayMove(src=Position(2, 1), dst=Position(2, 2)))
示例#3
0
 def test_MazeFacade_mayMove_False_Path_Too_Long(self):
     mazeFacade = MazeFacade(self.__mazeparser)
     self.assertFalse(mazeFacade.MayMove(src=Position(2, 1), dst=Position(2, 6)))
示例#4
0
 def test_MazeFacade_mayMove_True_2(self):
     mazeFacade = MazeFacade(self.__mazeparser)
     self.assertTrue(mazeFacade.MayMove(src=Position(14,8),dst=Position(15,8)))