Exemplo n.º 1
0
 def test_give_T_T_T_A_A_shoud_be_full_house(self):
     cards = ["TC", "TD", "TH", "AC", "AH"]
     answer = pk.ask_rank(cards)
     self.assertEqual('full house', answer)
Exemplo n.º 2
0
 def test_give_T_T_T_T_A_shoud_be_four_of_kind(self):
     cards = ["TC", "TD", "TH", "TS", "AH"]
     answer = pk.ask_rank(cards)
     self.assertEqual('four of kind', answer)
Exemplo n.º 3
0
 def test_give_2_2_3_4_5_should_be_pair(self):
     cards = ["2H", "2D", "3H", "4C", "5C"]
     answer = pk.ask_rank(cards)
     self.assertEqual('pair', answer)
Exemplo n.º 4
0
 def test_give_5_2_9_4_6_should_be_high_card(self):
     cards = ["5H", "2D", "9H", "4C", "6C"]
     answer = pk.ask_rank(cards)
     self.assertEqual('high card', answer)
Exemplo n.º 5
0
 def test_give_2_2_3_4_3_should_be_two_pairs(self):
     cards = ["2H", "2D", "3H", "4C", "3C"]
     answer = pk.ask_rank(cards)
     self.assertEqual('two pairs', answer)
Exemplo n.º 6
0
 def test_give_T_T_T_2_A_shoud_be_three_of_kind(self):
     cards = ["TC", "TD", "TH", "2S", "AH"]
     answer = pk.ask_rank(cards)
     self.assertEqual('three of kind', answer)
Exemplo n.º 7
0
 def test_give_10_J_Q_K_A_should_straight(self):
     cards = ["TC", "JD", "QH", "KC", "AH"]
     answer = pk.ask_rank(cards)
     self.assertEqual('straight', answer)
Exemplo n.º 8
0
 def test_give_TC_JC_QC_KC_AC_should_be_straight_flush(self):
     cards = ["TC", "JC", "QC", "KC", "AC"]
     answer = pk.ask_rank(cards)
     self.assertEqual('straight flush', answer)
Exemplo n.º 9
0
 def test_give_C_C_C_C_C_should_be_flush(self):
     cards = ["5C", "4C", "QC", "KC", "AC"]
     answer = pk.ask_rank(cards)
     self.assertEqual('flush', answer)