Esempio n. 1
0
def test_threes():
    assert 6 == Yatzy.threes(1, 2, 3, 2, 3)
    assert 12 == Yatzy.threes(2, 3, 3, 3, 3)
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
def test_threes():
    assert 0 == Yatzy.threes(1, 1, 1, 1, 1)
    assert 9 == Yatzy.threes(3, 3, 3, 4, 5)
Esempio n. 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)
Esempio n. 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)
Esempio n. 6
0
def test_threes():
    assert 6 == Yatzy.threes(1, 2, 3, 2, 3)
    assert 0 == Yatzy.threes(2, 5, 1, 6, 4)
Esempio n. 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)
def test_threes():
    assert 6 == Yatzy.threes(1, 2, 3, 2, 3)
    assert 12 == Yatzy.threes(2, 3, 3, 3, 3)