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