测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 362 字符 |
模型生成的代码 (362 字符)
def sum_range_list(lst, start, end):
"""
Returns the sum of numbers in a list from index 'start' to index 'end' (inclusive).
Parameters:
lst (list): List of numbers.
start (int): Start index.
end (int): End index (inclusive).
Returns:
int/float: Sum of the slice lst[start:end+1]
"""
return sum(lst[start:end+1])
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试