测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 498 字符 |
模型生成的代码 (498 字符)
def interleave_lists(l1, l2, l3):
"""
Interleave three lists of the same length element-wise into a single flat list.
Args:
l1, l2, l3: lists of equal length
Returns:
A single list combining elements in the order:
l1[0], l2[0], l3[0], l1[1], l2[1], l3[1], ...
"""
# Using zip to group elements by position, then flattening
interleaved = []
for a, b, c in zip(l1, l2, l3):
interleaved.extend([a, b, c])
return interleaved
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试