1
This commit is contained in:
2024-11-30 15:05:11 +08:00
parent f745506792
commit fe0636f84e
2 changed files with 8 additions and 2 deletions

View File

@@ -91,6 +91,9 @@ def test_big_pairs():
melds = []
conditions = {"is_big_pairs": is_big_pairs(hand)}
# 确保大对子检测正确
assert is_big_pairs(hand), "The hand is not identified as a big pairs hand."
fan = calculate_fan(hand, melds, is_self_draw=False, is_cleared=False, conditions=conditions)
assert fan == 2, f"Expected 2 fans (big pairs), got {fan}"