测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 590 字符 |
模型生成的代码 (590 字符)
def filter_data(students, min_height, min_weight):
"""
Filter students with height >= min_height and weight >= min_weight.
Args:
students (dict): dict with student name as key and (height, weight) tuple as value.
min_height (float): minimal allowed height.
min_weight (float): minimal allowed weight.
Returns:
dict: filtered dictionary of students meeting both criteria.
"""
return {
name: (height, weight)
for name, (height, weight) in students.items()
if height >= min_height and weight >= min_weight
}
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试