Example #1
0
 def test_that_potential_moves_for_L_are_DLUR(self):
     moves = solve_maze.potential_moves('L')
     self.assertEqual(['D', 'L', 'U', 'R'], moves)
Example #2
0
 def test_that_potential_moves_for_R_are_URDL(self):
     moves = solve_maze.potential_moves('R')
     self.assertEqual(['U', 'R', 'D', 'L'], moves)
Example #3
0
 def test_that_potential_moves_for_D_are_RDLU(self):
     moves = solve_maze.potential_moves('D')
     self.assertEqual(['R', 'D', 'L', 'U'], moves)
Example #4
0
 def test_that_potential_moves_for_U_are_LURD(self):
     moves = solve_maze.potential_moves('U')
     self.assertEqual(['L', 'U', 'R', 'D'], moves)