Пример #1
0
 def testZeroPair(self):
     hc = HandCalculator()
     score = hc.calculatePairScore([
         Card("Hearts", "A"),
         Card("Club", "2"),
         Card("Spade", "3"),
         Card("Diamond", "4"),
         Card("Club", "5")
     ])
     self.assertEqual(0, score)
Пример #2
0
 def testFourOfAKind(self):
     hc = HandCalculator()
     score = hc.calculatePairScore([
         Card("Hearts", "A"),
         Card("Club", "2"),
         Card("Spade", "A"),
         Card("Diamond", "A"),
         Card("Club", "A")
     ])
     self.assertEqual(12, score)