Mbpp/91

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度414 字符
模型生成的代码 (414 字符)
def find_substring(string_list: list[str], target: str) -> bool:
    """
    Check if a string is present as a substring in a given list of string values.

    Args:
        string_list: List of strings to search within.
        target: The substring to look for.

    Returns:
        True if target is a substring of any string in string_list, else False.
    """
    return any(target in s for s in string_list)
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试