测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 281 字符 |
模型生成的代码 (281 字符)
def sum_even_and_even_index(lst):
"""
Returns the sum of even numbers that are located at even indices (0-based)
of the given list.
"""
total = 0
for i, val in enumerate(lst):
if i % 2 == 0 and val % 2 == 0:
total += val
return total
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试