示例#1
0
def test_contains_winning_combination_when_no_combination_present():
    # given
    player_positions = [3, 4, 8]
    row_length = 3

    # when
    result = contains_winning_combination(player_positions, row_length)

    # then
    assert not result
示例#2
0
def test_contains_winning_combination_when_contains_winning_combination():
    # given
    player_positions = [0, 1, 2, 5, 9]
    row_length = 3

    # when
    result = contains_winning_combination(player_positions, row_length)

    # then
    assert result