Beispiel #1
0
 def test_poker_check_hand_rank10(self):
     '''Test case for checking "Check_hand_rank" function'''
     actual = poker.check_hand_rank(['2C', '2C', '2C', '4C', '4C'])
     expected = (6,2,4)
     self.assertEqual(actual, expected)
     self.assertEqual(actual, expected)
Beispiel #2
0
 def test_poker_check_hand_rank7(self):
     '''Test case for checking "Check_hand_rank" function'''
     actual = poker.check_hand_rank(['AC', 'KC', 'QC', 'JC', 'TC'])
     expected = (9,14)
     self.assertEqual(actual, expected)
     self.assertEqual(actual, expected)
Beispiel #3
0
 def test_poker_check_hand_rank9(self):
     '''Test case for checking "Check_hand_rank" function'''
     actual = poker.check_hand_rank(['AC', 'AD', 'JC', 'JC', 'TD'])
     expected = (2,14,11,10)
     self.assertEqual(actual, expected)
     self.assertEqual(actual, expected)
Beispiel #4
0
 def test_poker_check_hand_rank4(self):
     '''Test case for checking "Check_hand_rank" function'''
     actual = poker.check_hand_rank(['3C', '5D', '6D', '4C', '2C'])
     expected = (4,6)
     self.assertEqual(actual, expected)
Beispiel #5
0
 def test_poker_check_hand_rank5(self):
     '''Test case for checking "Check_hand_rank" function'''
     actual = poker.check_hand_rank(['3C', '3D', '3D', '2C', '2C'])
     expected = (7,3)
 def test_poker_check_hand_rank10(self):
     '''Test case for checking "Check_hand_rank" function'''
     actual = poker.check_hand_rank(['2C', '2C', '2C', '4C', '4C'])
     expected = (6, 2, 4)
     self.assertEqual(actual, expected)
     self.assertEqual(actual, expected)
Beispiel #7
0
 def test_poker_check_hand_rank2(self):
     '''Test case for checking "Check_hand_rank" function'''
     actual = poker.check_hand_rank(['5C', '7D', 'KD', '4C', '2C'])
     expected = (0,13)
     self.assertEqual(actual, expected)
 def test_poker_check_hand_rank9(self):
     '''Test case for checking "Check_hand_rank" function'''
     actual = poker.check_hand_rank(['AC', 'AD', 'JC', 'JC', 'TD'])
     expected = (2, 14, 11, 10)
     self.assertEqual(actual, expected)
     self.assertEqual(actual, expected)
 def test_poker_check_hand_rank7(self):
     '''Test case for checking "Check_hand_rank" function'''
     actual = poker.check_hand_rank(['AC', 'KC', 'QC', 'JC', 'TC'])
     expected = (9, 14)
     self.assertEqual(actual, expected)
     self.assertEqual(actual, expected)
 def test_poker_check_hand_rank5(self):
     '''Test case for checking "Check_hand_rank" function'''
     actual = poker.check_hand_rank(['3C', '3D', '3D', '2C', '2C'])
     expected = (7, 3)
 def test_poker_check_hand_rank4(self):
     '''Test case for checking "Check_hand_rank" function'''
     actual = poker.check_hand_rank(['3C', '5D', '6D', '4C', '2C'])
     expected = (4, 6)
     self.assertEqual(actual, expected)
 def test_poker_check_hand_rank2(self):
     '''Test case for checking "Check_hand_rank" function'''
     actual = poker.check_hand_rank(['5C', '7D', 'KD', '4C', '2C'])
     expected = (0, 13)
     self.assertEqual(actual, expected)