测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 433 字符 |
模型生成的代码 (433 字符)
def check_monthnumber_number(month: int) -> bool:
"""
Check if the given month number (1-12) has exactly 30 days.
Args:
month (int): Month number from 1 to 12.
Returns:
bool: True if the month has 30 days, False otherwise.
"""
# Months with 30 days: April (4), June (6), September (9), November (11)
months_with_30_days = {4, 6, 9, 11}
return month in months_with_30_days
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试