def test_sum_of_sixes():
    assert 0 == Yatzy.sum_of_sixes(4, 4, 4, 5, 5)
    assert 6 == Yatzy.sum_of_sixes(4, 4, 6, 5, 5)
    assert 18 == Yatzy.sum_of_sixes(6, 5, 6, 6, 5)
Example #2
0
def test_sum_of_sixes():
    assert Yatzy.sum_of_sixes(4, 4, 4, 5, 5) == 0
    assert Yatzy.sum_of_sixes(4, 4, 6, 5, 5) == 6
    assert Yatzy.sum_of_sixes(6, 5, 6, 6, 5) == 18