Ejemplo n.º 1
0
 def test_getallgaps_3cards1gap_returns1(self):
     cards = tools.convert_to_cards(['Tc', 'Js', 'Ks'])
     expected = 1
     result = evaluator.get_allgaps(cards)
     self.assertEqual(expected, result)
Ejemplo n.º 2
0
 def test_getallgaps_2connected_returns0(self):
     cards = tools.convert_to_cards(['Kc', 'As'])
     expected = 0
     result = evaluator.get_allgaps(cards)
     self.assertEqual(expected, result)