测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | FAIL |
| Plus 测试 | FAIL |
| 代码长度 | 260 字符 |
模型生成的代码 (260 字符)
def round_and_sum(lst):
"""
Given a list of numbers, rounds each number to the nearest integer,
calculates the sum of the rounded numbers, and returns that sum
multiplied by the length of the list.
"""
total = sum(round(x) for x in lst)
Base 失败测试用例
[[22.4, 4.0, -16.22, -9.1, 11.0, -12.22, 14.2, -5.2, 17.5]]
Plus 失败测试用例
[[]]