Mbpp/7

⚠️ Base 通过 / Plus 失败 Base: PASS Plus: FAIL
测试评估
指标结果
Base 测试PASS
Plus 测试FAIL
代码长度291 字符
模型生成的代码 (291 字符)
def find_char_long(s: str):
    """
    Returns a list of words from the input string that are at least 4 characters long.
    Words are defined as contiguous sequences of characters separated by whitespace.
    """
    words = s.split()
    return [word for word in words if len(word) >= 4]
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • ['This is a very long string with no words that are at least 4 characters long.']