Ejemplo n.º 1
0
def test_contains_row_when_player_positions_does_not_contain_row():
    # given
    player_positions = [0, 1, 9]
    row_length = 3

    # when
    result = contains_row(player_positions, row_length)

    # then
    assert not result
Ejemplo n.º 2
0
def test_contains_row_when_player_positions_contains_row():
    # given
    player_positions = [6, 7, 8]
    row_length = 3

    # when
    result = contains_row(player_positions, row_length)

    # then
    assert result