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