Exemplo n.º 1
0
 def test_give_2_to_5_and_7_should_false(self):
     cards = ["2C", "3D", "4H", "5C", "7H"]
     answer = pk.is_straight_rank(cards)
     self.assertEqual(False, answer)
Exemplo n.º 2
0
 def test_give_3_to_7_should_true(self):
     cards = ["3C", "4D", "5H", "6C", "7H"]
     answer = pk.is_straight_rank(cards)
     self.assertEqual(True, answer)
Exemplo n.º 3
0
 def test_give_3_7_7_7_7_should_false(self):
     cards = ["3C", "7D", "7H", "7C", "7S"]
     answer = pk.is_straight_rank(cards)
     self.assertEqual(False, answer)
Exemplo n.º 4
0
 def test_give_2_to_6_should_true(self):
     cards = ["2C", "3D", "4H", "5C", "6H"]
     answer = pk.is_straight_rank(cards)
     self.assertEqual(True, answer)
Exemplo n.º 5
0
 def test_give_10_J_Q_K_A_should_ture(self):
     cards = ["TC", "JD", "QH", "KC", "AH"]
     answer = pk.is_straight_rank(cards)
     self.assertEqual(True, answer)
Exemplo n.º 6
0
 def test_give_straight_flush_should_false(self):
     cards = ["TC", "JC", "QC", "KC", "AC"]
     answer = pk.is_straight_rank(cards)
     self.assertEqual(False, answer)