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