コード例 #1
0
def test_twos():
    assert Yatzy.twos(1, 2, 3, 2, 6) == 4
    assert Yatzy.twos(2, 2, 2, 2, 2) == 10
    assert Yatzy.twos(3, 2, 2, 2, 5) == 6
    assert Yatzy.twos(2, 2, 2, 2, 3) == 8
    assert Yatzy.twos(4, 1, 2, 6, 3) == 2
    assert Yatzy.twos(6, 3, 3, 4, 5) == 0
コード例 #2
0
def test_twos():
    assert 4 == Yatzy.twos([1, 2, 3, 2, 6])
    assert 10 == Yatzy.twos([2, 2, 2, 2, 2])