Mbpp/801

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
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 失败测试用例
  • 无失败测试