예제 #1
0
 def testFindStartingPointVeryShortMazeShouldOneThree(self):
     maze = Maze('mazes/very_short_maze.txt', QueueFrontier())
     self.assertEqual(Point(1, 3), maze._find_starting_point())
예제 #2
0
 def testFindStartingPointMazeShortestPossibleMazeShouldBeOneTwo(self):
     maze = Maze('mazes/shortest_possible_maze.txt', QueueFrontier())
     self.assertEqual(Point(1, 2), maze._find_starting_point())
예제 #3
0
 def testFindStartingPointMazeWithTurnShouldBeOneSeven(self):
     maze = Maze('mazes/maze_with_turn.txt', QueueFrontier())
     self.assertEqual(Point(1, 7), maze._find_starting_point())
예제 #4
0
 def testFindStartingPointMazeWithDeadEndShouldBeTwoSix(self):
     maze = Maze('mazes/maze_with_dead_end.txt', QueueFrontier())
     self.assertEqual(Point(2, 6), maze._find_starting_point())
예제 #5
0
 def testFindStartingPointMazeWithCycleShouldBeTwoSeven(self):
     maze = Maze('mazes/maze_with_cycle.txt', QueueFrontier())
     self.assertEqual(Point(2, 7), maze._find_starting_point())
예제 #6
0
 def testFindStartingPointLinearMazeShouldBeOneFive(self):
     maze = Maze('mazes/linear_maze.txt', QueueFrontier())
     self.assertEqual(Point(1, 5), maze._find_starting_point())