コード例 #1
0
ファイル: test_yatzy.py プロジェクト: sewerai-org/yatzy-kata
def test_threes():
    assert 6 == Yatzy.threes(1, 2, 3, 2, 3)
    assert 12 == Yatzy.threes(2, 3, 3, 3, 3)
コード例 #2
0
def test_threes():
    assert Yatzy.threes(1, 2, 3, 2, 3) == 6
    assert Yatzy.threes(2, 3, 3, 3, 3) == 12
    assert Yatzy.threes(2, 1, 1, 1, 1) == 0
コード例 #3
0
def test_threes():
    assert 0 == Yatzy.threes(1, 1, 1, 1, 1)
    assert 9 == Yatzy.threes(3, 3, 3, 4, 5)
コード例 #4
0
def test_threes():
    assert 9 == Yatzy.threes(3, 4, 5, 3, 3)
    assert 0 == Yatzy.threes(1, 2, 5, 4, 6)
    assert 12 == Yatzy.threes(3, 3, 3, 3, 6)
コード例 #5
0
def test_threes():
    ### La suma de todos los TRESES ###
    assert 0 == Yatzy.threes(1, 1, 1, 1, 1)
    assert 9 == Yatzy.threes(3, 3, 3, 4, 5)
コード例 #6
0
def test_threes():
    assert 6 == Yatzy.threes(1, 2, 3, 2, 3)
    assert 0 == Yatzy.threes(2, 5, 1, 6, 4)
コード例 #7
0
def test_threes():
    '''
    The player scores the sum of the dice that reads three
    '''
    assert 0 == Yatzy.threes(1, 1, 1, 1, 1)
    assert 9 == Yatzy.threes(3, 3, 3, 4, 5)
コード例 #8
0
def test_threes():
    assert 6 == Yatzy.threes(1, 2, 3, 2, 3)
    assert 12 == Yatzy.threes(2, 3, 3, 3, 3)