Exemplo n.º 1
0
 def testGetHeightVeryShortMazeShouldBeFive(self):
     maze = Maze('mazes/very_short_maze.txt', QueueFrontier())
     self.assertEqual(5, maze._get_height())
Exemplo n.º 2
0
 def testGetHeightMazeWithTurnShouldBeNine(self):
     maze = Maze('mazes/maze_with_turn.txt', QueueFrontier())
     self.assertEqual(9, maze._get_height())
Exemplo n.º 3
0
 def testGetHeightShortestPossibleMazeShouldBeFour(self):
     maze = Maze('mazes/shortest_possible_maze.txt', QueueFrontier())
     self.assertEqual(4, maze._get_height())
Exemplo n.º 4
0
 def testGetHeightMazeWithMultipleSolutionsShouldBeEight(self):
     maze = Maze('mazes/maze_with_multiple_solutions.txt', QueueFrontier())
     self.assertEqual(8, maze._get_height())
Exemplo n.º 5
0
 def testGetHeightMazeWithDeadEndShouldBeEight(self):
     maze = Maze('mazes/maze_with_dead_end.txt', QueueFrontier())
     self.assertEqual(8, maze._get_height())
Exemplo n.º 6
0
 def testGetHeightLinearMazeShouldBeSeven(self):
     maze = Maze('mazes/linear_maze.txt', QueueFrontier())
     self.assertEqual(7, maze._get_height())
Exemplo n.º 7
0
 def testGetHeightMazeIsEmptyList(self):
     maze = Maze('mazes/linear_maze.txt', QueueFrontier())
     maze._maze = []
     self.assertEqual(0, maze._get_height())
Exemplo n.º 8
0
 def testGetHeightMazeIsNone(self):
     maze = Maze('mazes/linear_maze.txt', QueueFrontier())
     maze._maze = None
     self.assertEqual(0, maze._get_height())