Пример #1
0
def test_get_tile():
    board = Board(empty_tiles(4))
    board = set_tile(board, 1, 2, 3)
    assert get_tile(board, 1, 2) == 3
Пример #2
0
def test_get_tile_should_error_on_negative_col():
    board = Board(empty_tiles(4))

    with raises(AttributeError):
        get_tile(board, -1, 1)
Пример #3
0
def test_get_tile_should_error_on_col_too_high():
    board = Board(empty_tiles(4))

    with raises(AttributeError):
        get_tile(board, 4, 1)