def testGetWidthMazeWithMultipleSolutionsShouldBeFive(self): maze = Maze('mazes/maze_with_multiple_solutions.txt', QueueFrontier()) self.assertEqual(5, maze._get_width())
def testGetWidthMazeWithTurnShouldBeFive(self): maze = Maze('mazes/maze_with_turn.txt', QueueFrontier()) self.assertEqual(5, maze._get_width())
def testGetWidthLinearMazeShouldBeThree(self): maze = Maze('mazes/linear_maze.txt', QueueFrontier()) self.assertEqual(3, maze._get_width())
def testGetWidthMazeWithDeadEndShouldBeFive(self): maze = Maze('mazes/maze_with_dead_end.txt', QueueFrontier()) self.assertEqual(5, maze._get_width())
def testGetWidthFromOneByOneShouldBeOne(self): maze = Maze('mazes/linear_maze.txt', QueueFrontier()) maze._maze = [['#']] self.assertEqual(1, maze._get_width())
def testGetWidthFirstRowEmptyShouldBeZero(self): maze = Maze('mazes/linear_maze.txt', QueueFrontier()) maze._maze = [] self.assertEqual(0, maze._get_width())
def testGetWidthEmptyMazeShouldBeZero(self): maze = Maze('mazes/linear_maze.txt', QueueFrontier()) maze._maze = None self.assertEqual(0, maze._get_width())
def testGetWidthVeryShortMazeShouldBeThree(self): maze = Maze('mazes/very_short_maze.txt', QueueFrontier()) self.assertEqual(3, maze._get_width())
def testGetWidthShortestPossibleMazeShouldBeThree(self): maze = Maze('mazes/shortest_possible_maze.txt', QueueFrontier()) self.assertEqual(3, maze._get_width())