Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'
Esempio n. 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'