Exemplo n.º 1
0
def test_chance_scores_sum_of_all_dice():
    Game = Yahtzee(1, 2, 3, 4, 5)  # Al formar el metodo parte
    # de la clase es necesario instanciarlo
    # para probarlo
    expected = 15
    actual = Game.chance(2, 3, 4, 5, 1)
    assert expected == actual
def test_chance_scores_sum_of_all_dice():
    expected = 15
    actual = Yahtzee.chance(2, 3, 4, 5, 1)
    assert expected == actual
    assert 16 == Yahtzee.chance(3, 3, 4, 5, 1)
def test_chance_scores_sum_of_all_dice():
        expected = 15
        actual = Yahtzee.chance(2, 3, 4, 5, 1)
        assert expected == actual
        assert 16 == Yahtzee.chance(3, 3, 4, 5, 1)
def test_chance():
        expected = 15
        actual = Yahtzee.chance(2,3,4,5,1)
        assert expected == actual
        assert 16 == Yahtzee.chance(3,3,4,5,1)
Exemplo n.º 5
0
 def test_chance_scores_sum_of_all_dice(self):
     expected = 15
     actual = Yahtzee.chance(2, 3, 4, 5, 1)
     self.assertEqual(expected, actual)
     self.assertEqual(16, Yahtzee.chance(3, 3, 4, 5, 1))