Mbpp/762

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
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 失败测试用例
  • 无失败测试