Mbpp/90

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度278 字符
模型生成的代码 (278 字符)
def len_log(words):
    """Return the length of the longest word in the list.
    
    Args:
        words: list of strings.
        
    Returns:
        int: maximum length of strings in the list, or 0 if empty.
    """
    return max((len(word) for word in words), default=0)
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试