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

Function test_compare_simple

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

Source from the content-addressed store, hash-verified

176
177@pytest.mark.parametrize(("hand", "other", "expected"), TEST_COMPARE)
178def test_compare_simple(hand, other, expected):
179 assert PokerHand(hand).compare_with(PokerHand(other)) == expected
180
181
182@pytest.mark.parametrize(("hand", "other", "expected"), generate_random_hands())

Callers

nothing calls this directly

Calls 2

PokerHandClass · 0.85
compare_withMethod · 0.80

Tested by

no test coverage detected