def test_four_of_a_knd():
        assert 12 == Yahtzee.four_of_a_kind(3, 3, 3, 3, 5)
        assert 20 == Yahtzee.four_of_a_kind(5, 5, 5, 4, 5)
        assert 0 == Yahtzee.three_of_a_kind(3, 3, 3, 3, 3)
def test_four_of_a_knd():
    assert 12 == Yahtzee.four_of_a_kind(3, 3, 3, 3, 5)
    assert 20 == Yahtzee.four_of_a_kind(5, 5, 5, 4, 5)
    assert 0 == Yahtzee.three_of_a_kind(3, 3, 3, 3, 3)
示例#3
0
 def test_four_of_a_kind(self):
     self.assertEqual(12, Yahtzee.four_of_a_kind(3, 3, 3, 3, 5))
     self.assertEqual(20, Yahtzee.four_of_a_kind(5, 5, 5, 4, 5))
     self.assertEqual(0, Yahtzee.four_of_a_kind(3, 1, 2, 3, 3))