shortdeck1.2
This commit is contained in:
@@ -19,10 +19,9 @@ def test_join_and_actions():
|
||||
assert g.current_turn == 0
|
||||
|
||||
# 测试错误的玩家尝试行动
|
||||
try:
|
||||
g.apply_action(1, "fold")
|
||||
except ValueError as e:
|
||||
assert "not your turn" in str(e)
|
||||
result = g.apply_action(1, "fold")
|
||||
assert result["success"] == False
|
||||
assert "不是玩家" in result["message"] or "turn" in result["message"].lower()
|
||||
|
||||
# 小盲玩家call (跟注到大盲)
|
||||
g.apply_action(0, "call")
|
||||
|
||||
Reference in New Issue
Block a user