测试评估
| 指标 | 结果 |
|---|---|
| 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.']