Exemplo n.º 1
0
def test_opposing_border_location_for_west_location():
    """ Tests opposing_border_location """
    board = Board()
    size = board.maze.maze_size
    assert board.opposing_border_location(BoardLocation(1,
                                                        0)) == BoardLocation(
                                                            1, size - 1)
Exemplo n.º 2
0
def test_opposing_border_location_for_south_location():
    """ Tests opposing_border_location """
    board = Board()
    size = board.maze.maze_size
    assert board.opposing_border_location(BoardLocation(size - 1,
                                                        3)) == BoardLocation(
                                                            0, 3)