测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | FAIL |
| Plus 测试 | FAIL |
| 代码长度 | 336 字符 |
模型生成的代码 (336 字符)
def extract_index_list(l1, l2, l3):
"""
Find common elements from three lists that appear at the same index.
An element is common for lists l1, l2, l3 if it appears in all three
lists under the same index. The function returns a list of such elements.
"""
# Only check indices that exist in all three lists
Base 失败测试用例
[[1, 1, 3, 4, 5, 6, 7], [0, 1, 2, 3, 4, 5, 7], [0, 1, 2, 3, 4, 5, 7]]
Plus 失败测试用例
[[], [], []]