コード例 #1
0
 def test_pair(self):
     self.assertEqual(pd_main.dice_rules(hand=[5, 6, 3, 1, 1]), (['Pair'], 1))
コード例 #2
0
 def test_five_kind(self):
     self.assertEqual(pd_main.dice_rules(hand=[1, 1, 1, 1, 1]), (['Five of a kind'], 7))
コード例 #3
0
 def test_bust(self):
     self.assertEqual(pd_main.dice_rules(hand=[5, 6, 3, 1, 4]), (['Bust'], 0))
コード例 #4
0
 def test_four_kind(self):
     self.assertEqual(pd_main.dice_rules(hand=[4, 4, 4, 4, 1]), (['Four of a Kind'], 1))
コード例 #5
0
 def test_full_house(self):
     self.assertEqual(pd_main.dice_rules(hand=[3, 3, 3, 6, 6]), (['Full House'], 5))
コード例 #6
0
 def test_straight(self):
     self.assertEqual(pd_main.dice_rules(hand=[1, 2, 3, 4, 5]), (['Straight'], 4))
コード例 #7
0
 def test_three_kind(self):
     self.assertEqual(pd_main.dice_rules(hand=[5, 6, 1, 1, 1]), (['Three of a Kind'], 1))
コード例 #8
0
 def test_two_pair(self):
     self.assertEqual(pd_main.dice_rules(hand=[5, 3, 3, 1, 1]), (['Two Pair'], 2))