예제 #1
0
 def test_rankdict_0Ace_counts0(self):
     cards = tools.convert_to_cards(['Kc', '2s'])
     expected = 0
     rankdict = evaluator.rank_dict(cards)
     # 0 is the default in case there are no Aces
     result = rankdict.get('A', 0)
     self.assertEqual(expected, result)
예제 #2
0
 def test_rankdict_2Aces_counts2(self):
     cards = tools.convert_to_cards(['Ah', 'Kc', 'As'])
     expected = 2
     rankdict = evaluator.rank_dict(cards)
     result = rankdict.get('A')
     self.assertEqual(expected, result)