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)
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)