✅ Select contract demon invalid raises
| Category | Ability |
| Status | Passing |
| Test | tests/test_turn_sequence.py::test_select_contract_demon_invalid_raises |
Selecting a demon not in hand raises ValueError.
Preconditions
- P1 hand = ["001"].
Action
- select_contract_demon(state, Side.PLAYER_1, "099")
with pytest.raises(ValueError, match="099"):
select_contract_demon(state, Side.PLAYER_1, "099")
Expected Postconditions
- ValueError raised ("099" not in hand).
Assertions
# Verified by pytest.raises context manager above