def test_yatzy_scores(): score = 50 assert Yatzy.yatzy(4, 4, 4, 4, 4) == score assert Yatzy.yatzy(6, 6, 6, 6, 6) == score assert Yatzy.yatzy(6, 6, 6, 6, 3) == 0 assert Yatzy.yatzy(1, 1, 1, 1, 1) == score assert Yatzy.yatzy(2, 2, 2, 2, 2) == score assert Yatzy.yatzy(3, 3, 3, 3, 3) == score assert Yatzy.yatzy(5, 5, 5, 5, 5) == score
def test_yatzy(): assert 50 == Yatzy.yatzy([4, 4, 4, 4, 4]) assert 50 == Yatzy.yatzy([6, 6, 6, 6, 6]) assert 0 == Yatzy.yatzy([6, 6, 6, 6, 3])