测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 391 字符 |
模型生成的代码 (391 字符)
def cummulative_sum(tuple_list):
"""
Compute the cumulative sum of all the values present in the given tuple list.
Args:
tuple_list (list of tuples): A list containing tuples of numeric values.
Returns:
int or float: The total sum of all elements inside the tuples.
"""
total = 0
for tup in tuple_list:
total += sum(tup)
return total
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试