def test_full_house():
    assert Yatzy.full_house(6, 2, 2, 2, 6) == 18
    assert Yatzy.full_house(2, 3, 4, 5, 6) == 0
    assert Yatzy.full_house(2, 2, 2, 5, 5) == 16
    assert Yatzy.full_house(1, 3, 3, 1, 1) == 9
    assert Yatzy.full_house(6, 6, 5, 5, 6) == 28
Exemplo n.º 2
0
def test_full_house():
    assert 25 == Yatzy.full_house([6, 2, 2, 2, 6])
    assert 25 == Yatzy.full_house([3, 3, 3, 4, 4])
    assert 0 == Yatzy.full_house([2, 3, 4, 5, 6])