def test_fours():
    dice = Yatzy(1, 4, 3, 4, 5)
    assert dice.fours() == 8, "fallo en función fours, primer assert"
    dice = Yatzy(1, 4, 4, 6, 4)
    assert dice.fours() == 12, "fallo en función fours, segundo assert"
    dice = Yatzy(1, 2, 3, 5, 6)
    assert dice.fours() == 0, "fallo en función fours , tercer assert"
Beispiel #2
0
def test_fours():
    assert 12 == Yatzy.fours(4, 4, 4, 5, 5)
    assert 8 == Yatzy.fours(4, 4, 5, 5, 5)
    assert 4 == Yatzy.fours(4, 5, 5, 5, 5)
    assert 8 == Yatzy.fours(1, 1, 2, 4, 4)
Beispiel #3
0
def test_fours_test():
    assert 12 == Yatzy.fours(4, 4, 4, 5, 5)
    assert 8 == Yatzy.fours(4, 4, 5, 5, 5)
    assert 4 == Yatzy.fours(4, 5, 5, 5, 5)