project_euler.problem_054.test_poker_hand¶
Attributes¶
Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Module Contents¶
- project_euler.problem_054.test_poker_hand.generate_random_hand()¶
- project_euler.problem_054.test_poker_hand.generate_random_hands(number_of_hands: int = 100)¶
- project_euler.problem_054.test_poker_hand.test_compare_random(hand, other, expected)¶
- project_euler.problem_054.test_poker_hand.test_compare_simple(hand, other, expected)¶
- project_euler.problem_054.test_poker_hand.test_custom_sort_five_high_straight()¶
- project_euler.problem_054.test_poker_hand.test_euler_project()¶
- project_euler.problem_054.test_poker_hand.test_hand_is_five_high_straight(hand, expected, card_values)¶
- project_euler.problem_054.test_poker_hand.test_hand_is_flush(hand, expected)¶
- project_euler.problem_054.test_poker_hand.test_hand_is_same_kind(hand, expected)¶
- project_euler.problem_054.test_poker_hand.test_hand_is_straight(hand, expected)¶
- project_euler.problem_054.test_poker_hand.test_hand_sorted()¶
- project_euler.problem_054.test_poker_hand.test_hand_values(hand, expected)¶
- project_euler.problem_054.test_poker_hand.test_multiple_calls_five_high_straight()¶
- project_euler.problem_054.test_poker_hand.SORTED_HANDS = ('4S 3H 2C 7S 5H', '9D 8H 2C 6S 7H', '2D 6D 9D TH 7D', 'TC 8C 2S JH 6C', 'JH 8S TH AH QH', 'TS...¶
- project_euler.problem_054.test_poker_hand.TEST_COMPARE = (('2H 3H 4H 5H 6H', 'KS AS TS QS JS', 'Loss'), ('2H 3H 4H 5H 6H', 'AS AD AC AH JD', 'Win'), ('AS...¶
- project_euler.problem_054.test_poker_hand.TEST_FIVE_HIGH_STRAIGHT = (('2H 4D 3C AS 5S', True, [5, 4, 3, 2, 14]), ('2H 5D 3C AS 5S', False, [14, 5, 5, 3, 2]), ('JH...¶
- project_euler.problem_054.test_poker_hand.TEST_FLUSH = (('2H 3H 4H 5H 6H', True), ('AS AH 2H AD AC', False), ('2H 3H 5H 6H 7H', True), ('KS AS TS QS...¶
- project_euler.problem_054.test_poker_hand.TEST_KIND = (('JH AH TH KH QH', 0), ('JH 9H TH KH QH', 0), ('JC KH JS JD JH', 7), ('KH KC 3S 3H 3D', 6),...¶
- project_euler.problem_054.test_poker_hand.TEST_STRAIGHT = (('2H 3H 4H 5H 6H', True), ('AS AH 2H AD AC', False), ('2H 3H 5H 6H 7H', False), ('KS AS TS QS...¶
- project_euler.problem_054.test_poker_hand.TEST_TYPES = (('JH AH TH KH QH', 23), ('JH 9H TH KH QH', 22), ('JC KH JS JD JH', 21), ('KH KC 3S 3H 3D', 20),...¶