def test_complex_neighbours_case(self): maze = '######\n' + \ '..A.#B\n' + \ '.####.\n' + \ '......\n' ms = MazeSolver(maze) assert ms.neighbors((1, 2)) == ( (1, 3), (1, 1), ) assert ms.neighbors((2, 5)) == ( (3, 5), (1, 5), )
def test_neighbours(self): maze = 'A#B\n.#.\n...' ms = MazeSolver(maze) assert ms.neighbors((0, 0)) == ((1, 0),)