Esempio n. 1
0
def test_twos():
    assert 4 == Yatzy.twos(1, 2, 2, 4, 3)
Esempio n. 2
0
def test_2s():
    assert 4 == Yatzy.twos(1, 2, 3, 2, 6)
    assert 10 == Yatzy.twos(2, 2, 2, 2, 2)
def test_twos():
    assert 0 == Yatzy.twos(3, 3, 3, 4, 5)
    assert 4 == Yatzy.twos(2, 3, 2, 5, 1)
def test_twos():
    assert 4 == Yatzy.twos(2, 3, 2, 5, 1)
    assert 2 == Yatzy.twos(1, 1, 2, 4, 4)
    assert 0 == Yatzy.twos(3, 3, 3, 4, 5)
Esempio n. 5
0
def test_twos():
    assert 4 == Yatzy.twos(2, 4, 6, 5, 2)
    assert 0 == Yatzy.twos(4, 5, 6, 7, 6)
    assert 10 == Yatzy.twos(2, 2, 2, 2, 2)
def test_twos():  #suma todos los doses (el valor, no la cuenta)
    assert Yatzy.twos(1, 2, 3, 2, 6) == 4
    assert Yatzy.twos(2, 2, 2, 2, 2) == 10
    assert Yatzy.twos(1, 6, 3, 6, 6) == 0
Esempio n. 7
0
def test_twos():
    assert Yatzy.twos(1, 2, 3, 2, 6) == 4
    assert Yatzy.twos(2, 2, 2, 2, 2) == 10
Esempio n. 8
0
def test_twos():
    ### La suma de todos los DOSES ###
    assert 0 == Yatzy.twos(3, 3, 3, 4, 5)
    assert 4 == Yatzy.twos(2, 3, 2, 5, 1)
Esempio n. 9
0
def test_twos():
    assert 0 == Yatzy.twos(1, 4, 3, 5, 6)
    assert 10 == Yatzy.twos(2, 2, 2, 2, 2)
Esempio n. 10
0
def test_twos():
    '''
    The player scores the sum of the dice that reads two
    '''
    assert 0 == Yatzy.twos(3, 3, 3, 4, 5)
    assert 4 == Yatzy.twos(2, 3, 2, 5, 1)
def test_2s():
    assert 4 == Yatzy.twos(1, 2, 3, 2, 6)
    assert 10 == Yatzy.twos(2, 2, 2, 2, 2)