测试评估
| 指标 | 结果 |
|---|---|
| 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 失败测试用例
- 无失败测试