Mbpp/310

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度177 字符
模型生成的代码 (177 字符)
def string_to_tuple(s: str) -> tuple:
    """
    Convert a given string to a tuple of characters, ignoring whitespace.
    """
    return tuple(c for c in s if not c.isspace())
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试