Mbpp/567

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度352 字符
模型生成的代码 (352 字符)
def issort_list(lst):
    """
    Check whether the given list is sorted in non-decreasing order.
    
    Args:
        lst: A list of comparable elements.
        
    Returns:
        bool: True if the list is sorted, False otherwise.
    """
    for i in range(len(lst) - 1):
        if lst[i] > lst[i + 1]:
            return False
    return True
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试