Example #1
0
def test_precedence_one_pair():
    assert main.find_rank(main.one_pair) == len(main.value_pair_list) - 7
Example #2
0
def test_precedence_high_card():
    assert main.find_rank(main.high_card) == len(main.value_pair_list) - 8
Example #3
0
def test_precedence_three_kind():
    assert main.find_rank(main.three_kind) == len(main.value_pair_list) - 6
Example #4
0
def test_precedence_straight():
    assert main.find_rank(main.straight) == len(main.value_pair_list) - 5
Example #5
0
def test_precedence_flush():
    assert main.find_rank(main.flush) == len(main.value_pair_list) - 4
Example #6
0
def test_precedence_full_house():
    assert main.find_rank(main.full_house) == len(main.value_pair_list) - 3
Example #7
0
def test_precedence_four_kind():
    assert main.find_rank(main.four_kind) == len(main.value_pair_list) - 2