测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 467 字符 |
模型生成的代码 (467 字符)
def check_monthnumb_number(month: int) -> bool:
"""
Returns True if the given month number has 31 days, False otherwise.
Args:
month: An integer representing a month (1 for January, 12 for December).
Returns:
bool: True if the month has 31 days, else False.
"""
# Months with 31 days: January (1), March (3), May (5), July (7),
# August (8), October (10), December (12)
return month in {1, 3, 5, 7, 8, 10, 12}
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试