Beispiel #1
0
 def testWinnerPlayerMoreThan21(self):
     player = [
         Card('C', '2'),
         Card('C', '6'),
         Card('C', '8'),
         Card('C', 'K')
     ]
     dealer = [Card('S', 'Q'), Card('S', '8')]
     self.assertEqual("dealer", show_winner(dealer, player))
Beispiel #2
0
 def testWinnerSameTotal(self):
     player = [Card('C', '2'), Card('C', '6')]
     dealer = [Card('S', '3'), Card('H', '5')]
     self.assertEqual("dealer", show_winner(dealer, player))
Beispiel #3
0
 def testWinnerDealer(self):
     player = [Card('C', '2'), Card('C', '6'), Card('C', 'K')]
     dealer = [Card('S', 'Q'), Card('H', '9')]
     self.assertEqual("dealer", show_winner(dealer, player))