测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 304 字符 |
模型生成的代码 (304 字符)
def test_three_equal(a, b, c):
"""
Count the number of equal numbers among three given integers.
Returns 3 if all three are equal, 2 if exactly two are equal, else 0.
"""
if a == b == c:
return 3
elif a == b or a == c or b == c:
return 2
else:
return 0
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试