コード例 #1
0
def test_is_flush(all_faces):
    card = []
    for i in all_faces:
        card.append(i)
    random.shuffle(card)
    my_card = card[5:]
    assert Hands.is_flush(my_card) == False
コード例 #2
0
def test_is_flush(faces, expected):
    hand_org = [PKCard(c) for c in faces]
    random.shuffle(faces)
    hand = Hands([PKCard(c) for c in faces])
    result = hand.is_flush()
    assert result == True
    assert hand.cards == hand_org
コード例 #3
0
def test_is_flush(faces, expected):
    hand_org = [c for c in faces]
    random.shuffle(faces)
    hand = ([c for c in faces])
    result = Hands.is_flush(hand)
    assert result == True