Beispiel #1
0
def test_full_house_vs_high_card():
    a = random.sample(full_house, num_cards)
    b = random.sample(high_card, num_cards)
    assert main.return_winner(a, b) == a, 'full house beats a high_card'
Beispiel #2
0
def test_royal_flush_vs_flush():
    a = random.sample(royal_flush, num_cards)
    b = random.sample(flush, num_cards)
    assert main.return_winner(a, b) == a, 'Royal flush beats a flush'
Beispiel #3
0
def test_full_house_vs_one_pair():
    a = random.sample(full_house, num_cards)
    b = random.sample(one_pair, num_cards)
    assert main.return_winner(a, b) == a, 'full house beats a one_pair'
Beispiel #4
0
def test_straight_vs_high_card():
    a = random.sample(straight, num_cards)
    b = random.sample(high_card, num_cards)
    assert main.return_winner(a, b) == a, 'straight beats a high_card'
Beispiel #5
0
def test_three_kind_vs_high_card():
    a = random.sample(three_kind, num_cards)
    b = random.sample(high_card, num_cards)
    assert main.return_winner(a, b) == a, 'three of a kind beats a high_card'
Beispiel #6
0
def test_flush_vs_one_pair():
    a = random.sample(flush, num_cards)
    b = random.sample(one_pair, num_cards)
    assert main.return_winner(a, b) == a, 'flush beats a one_pair'
Beispiel #7
0
def test_straight_vs_three_kind():
    a = random.sample(straight, 5)
    b = random.sample(three_kind, 5)
    assert main.return_winner(a, b) == a, 'straight beats a three_kind'
Beispiel #8
0
def test_four_kind_vs_straight():
    a = random.sample(four_kind, num_cards)
    b = random.sample(straight, num_cards)
    assert main.return_winner(a, b) == a, 'four kind beats a straight'
Beispiel #9
0
def test_four_kind_vs_three_kind():
    a = random.sample(four_kind, 5)
    b = random.sample(three_kind, 5)
    assert main.return_winner(a, b) == a, 'four kind beats a three_kind'
Beispiel #10
0
def test_four_kind_vs_full_house():
    a = random.sample(four_kind, num_cards)
    b = random.sample(full_house, num_cards)
    assert main.return_winner(a, b) == a, 'four kind beats a full house'
Beispiel #11
0
def test_four_kind_vs_flush():
    a = random.sample(four_kind, num_cards)
    b = random.sample(flush, num_cards)
    assert main.return_winner(a, b) == a, 'four kind beats a flush'
Beispiel #12
0
def test_straight_flush_vs_full_house():
    a = random.sample(straight_flush, num_cards)
    b = random.sample(full_house, num_cards)
    assert main.return_winner(a, b) == a, 'straight flush beats a full house'
Beispiel #13
0
def test_straight_flush_vs_four_kind():
    a = random.sample(straight_flush, num_cards)
    b = random.sample(four_kind, num_cards)
    assert main.return_winner(a, b) == a, 'straight flush beats four of a kind'
Beispiel #14
0
def test_royal_flush_vs_three_kind():
    a = random.sample(royal_flush, num_cards)
    b = random.sample(three_kind, num_cards)
    assert main.return_winner(a, b) == a, 'Royal flush beats a three_kind'
Beispiel #15
0
def test_flush_vs_straight():
    a = random.sample(flush, num_cards)
    b = random.sample(straight, num_cards)
    assert main.return_winner(a, b) == a, 'flush beats a straight'
Beispiel #16
0
def test_four_kind_vs_one_pair():
    a = random.sample(four_kind, num_cards)
    b = random.sample(one_pair, num_cards)
    assert main.return_winner(a, b) == a, 'four kind beats a one_pair'
Beispiel #17
0
def test_flush_vs_three_kind():
    a = random.sample(flush, 5)
    b = random.sample(three_kind, 5)
    assert main.return_winner(a, b) == a, 'flush beats a three_kind'
Beispiel #18
0
def test_four_kind_vs_high_card():
    a = random.sample(four_kind, num_cards)
    b = random.sample(high_card, num_cards)
    assert main.return_winner(a, b) == a, 'four kind beats a high_card'
Beispiel #19
0
def test_flush_vs_high_card():
    a = random.sample(flush, num_cards)
    b = random.sample(high_card, num_cards)
    assert main.return_winner(a, b) == a, 'flush beats a high_card'
Beispiel #20
0
def test_full_house_vs_flush():
    a = random.sample(full_house, num_cards)
    b = random.sample(flush, num_cards)
    assert main.return_winner(a, b) == a, 'full house beats a flush'
Beispiel #21
0
def test_straight_vs_one_pair():
    a = random.sample(straight, num_cards)
    b = random.sample(one_pair, num_cards)
    assert main.return_winner(a, b) == a, 'straight beats a one_pair'
Beispiel #22
0
def test_full_house_vs_straight():
    a = random.sample(full_house, num_cards)
    b = random.sample(straight, num_cards)
    assert main.return_winner(a, b) == a, 'full house beats a straight'
Beispiel #23
0
def test_three_kind_vs_one_pair():
    a = random.sample(three_kind, num_cards)
    b = random.sample(one_pair, num_cards)
    assert main.return_winner(a, b) == a, 'three of a kind beats a one_pair'
Beispiel #24
0
def test_full_house_vs_three_kind():
    a = random.sample(full_house, 5)
    b = random.sample(three_kind, 5)
    assert main.return_winner(a, b) == a, 'full house beats a three_kind'
Beispiel #25
0
def test_one_pair_vs_high_card():
    a = random.sample(one_pair, num_cards)
    b = random.sample(high_card, num_cards)
    assert main.return_winner(a, b) == a, 'one pair beats a high_card'
Beispiel #26
0
def test_royal_flush_vs_four_kind():
    a = random.sample(royal_flush, num_cards)
    b = random.sample(four_kind, num_cards)
    assert main.return_winner(a, b) == a, 'Royal flush beats four of a kind'