MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / test_compare_random

Function test_compare_random

project_euler/problem_054/test_poker_hand.py:183–184  ·  view source on GitHub ↗
(hand, other, expected)

Source from the content-addressed store, hash-verified

181
182@pytest.mark.parametrize(("hand", "other", "expected"), generate_random_hands())
183def test_compare_random(hand, other, expected):
184 assert PokerHand(hand).compare_with(PokerHand(other)) == expected
185
186
187def test_hand_sorted():

Callers

nothing calls this directly

Calls 2

PokerHandClass · 0.85
compare_withMethod · 0.80

Tested by

no test coverage detected