Beispiel #1
0
 def test_removepairs_2345_returns2345(self):
     cards = tools.convert_to_cards(['2c', '3d', '4d', '5h'])
     result = evaluator.remove_pairs(cards)
     self.assertEqual(cards, result)
Beispiel #2
0
 def test_removepairs_A223_returns23A(self):
     # Keep the first 2
     cards = tools.convert_to_cards(['As', '2h', '2c', '3d'])
     expected = tools.convert_to_cards(['2h', '3d', 'As'])
     result = evaluator.remove_pairs(cards)
     self.assertEqual(expected, result)
Beispiel #3
0
 def test_removepairs_22_returns2(self):
     cards = tools.convert_to_cards(['2c', '2d'])
     expected = [card.Card('2', 'c')]
     result = evaluator.remove_pairs(cards)
     self.assertEqual(expected, result)