Exemple #1
0
    def test_twoPairNotFullHouse(self):
        ranks = [3, 3, 3, 7, 2]
        suits = ['d', 's', 'c', 'h', 'd']
        hand = Hand([Card(suits[i], ranks[i]) for i in range(5)])

        assert hand.isFullHouse() == False
Exemple #2
0
    def test_fullHouseRecognizedAsHighCard(self):
        ranks = [6, 6, 11, 11, 11]
        suits = ['h', 'd', 's', 'd', 'h']
        hand = Hand([Card(suits[i], ranks[i]) for i in range(5)])

        assert hand.isFullHouse() == True
Exemple #3
0
    def test_fullHouse(self):
        ranks = [3, 3, 3, 7, 7]
        suits = ['d', 's', 'c', 'h', 'd']
        hand = Hand([Card(suits[i], ranks[i]) for i in range(5)])

        assert hand.isFullHouse() == True