コード例 #1
0
 def test_royal_flush(self):
     result = [1, 2, 3, 4, 5]
     self.assertEqual(7, Poker.CheckScore(result))
コード例 #2
0
 def test_royal_flush_no_order(self):
     result = [2, 6, 5, 4, 3]
     self.assertEqual(7, Poker.CheckScore(result))
コード例 #3
0
 def test_one_pair(self):
     result = [4, 2, 2, 3, 5]
     self.assertEqual(2, Poker.CheckScore(result))
コード例 #4
0
 def test_high_card(self):
     result = [2, 3, 1, 4, 6]
     self.assertEqual(1, Poker.CheckScore(result))
コード例 #5
0
 def test_two_pair(self):
     result = [3, 3, 1, 6, 6]
     self.assertEqual(3, Poker.CheckScore(result))
コード例 #6
0
 def test_three_of_a_kind(self):
     result = [6, 1, 6, 2, 6]
     self.assertEqual(4, Poker.CheckScore(result))
コード例 #7
0
 def test_full_house1_6(self):
     result = [6, 1, 6, 1, 6]
     self.assertEqual(5, Poker.CheckScore(result))
コード例 #8
0
 def test_full_house1_2(self):
     result = [1, 1, 2, 2, 2]
     self.assertEqual(5, Poker.CheckScore(result))
コード例 #9
0
 def test_five_of_a_kind_at_3(self):
     result = [3, 3, 3, 3, 3]
     self.assertEqual(6, Poker.CheckScore(result))