测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 443 字符 |
模型生成的代码 (443 字符)
def tuple_modulo(t1, t2):
"""
Perform element-wise modulo on two tuples of the same length.
Args:
t1: First tuple of integers.
t2: Second tuple of integers (same length as t1).
Returns:
A tuple with the results of t1[i] % t2[i] for each index i.
"""
if len(t1) != len(t2):
raise ValueError("Tuples must have the same length")
return tuple(a % b for a, b in zip(t1, t2))
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试