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