Mbpp/455

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