Beispiel #1
0
 def test_getallcombos_1card_returns1(self):
     cards = tools.convert_to_cards(['As'])
     allcombos = combos.get_allcombos(cards)
     expected = 1
     result = len(allcombos)
     self.assertEqual(expected, result)
Beispiel #2
0
 def test_getallcombos_3cards_returns7(self):
     cards = tools.convert_to_cards(['As', 'Ks', 'Qs'])
     allcombos = combos.get_allcombos(cards)
     expected = 7
     result = len(allcombos)
     self.assertEqual(expected, result)
Beispiel #3
0
 def test_getallcombos_emptylist_returns0(self):
     allcombos = combos.get_allcombos([])
     expected = 0
     result = len(allcombos)
     self.assertEqual(expected, result)