Exemplo n.º 1
0
 def test_is_full_house(self):
     label_patterns = [
         False, False, False, False, False, False, True, False, False,
         False, False
     ]
     for hands, label in zip(self.hands_patterns, label_patterns):
         with self.subTest(hands=hands, label=label):
             self.assertEqual(poker.is_full_house(hands), label)
Exemplo n.º 2
0
 def test_full_house_false(self):
     self.assertFalse(is_full_house([
         Card('2', 'D'), Card('T', 'H'),
         Card('T', 'C'), Card('A', 'S'),
         Card('A', 'D')
     ]))
Exemplo n.º 3
0
 def test_full_house_true(self):
     self.assertTrue(is_full_house([
         Card('T', 'D'), Card('T', 'H'),
         Card('T', 'C'), Card('A', 'S'),
         Card('A', 'D')
     ]))