def testFindGoalVeryShortMazeShouldBeOneOne(self): maze = Maze('mazes/very_short_maze.txt', QueueFrontier()) self.assertEqual(Point(1, 1), maze._find_goal())
def testFindGoalMazeShortestPossibleMazeShouldBeOneOne(self): maze = Maze('mazes/shortest_possible_maze.txt', QueueFrontier()) self.assertEqual(Point(1, 1), maze._find_goal())
def testFindGoalMazeWithCycleShouldBeTwoOne(self): maze = Maze('mazes/maze_with_cycle.txt', QueueFrontier()) self.assertEqual(Point(2, 1), maze._find_goal())
def testFindGoalMazeWithTurnShouldBeThreeOne(self): maze = Maze('mazes/maze_with_turn.txt', QueueFrontier()) self.assertEqual(Point(3, 1), maze._find_goal())
def testFindGoalLinearMazeShouldBeOneOne(self): maze = Maze('mazes/linear_maze.txt', QueueFrontier()) self.assertEqual(Point(1, 1), maze._find_goal())