测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 315 字符 |
模型生成的代码 (315 字符)
def add_pairwise(tup):
"""
Returns a tuple of pairwise sums of neighboring elements in the input tuple.
Args:
tup (tuple): A tuple of numbers.
Returns:
tuple: A tuple containing the sum of each adjacent pair.
"""
return tuple(tup[i] + tup[i+1] for i in range(len(tup) - 1))
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试