示例#1
0
 def test_royal_straight_flush_false(self):
     self.assertFalse(is_royal([
         Card('T', 'D'), Card('J', 'D'),
         Card('4', 'D'), Card('K', 'D'),
         Card('A', 'D')
     ]))
示例#2
0
 def test_royal_straight_flush_true(self):
     self.assertTrue(is_royal([
         Card('T', 'D'), Card('J', 'D'),
         Card('Q', 'D'), Card('K', 'D'),
         Card('A', 'D')
     ]))