测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 369 字符 |
模型生成的代码 (369 字符)
import math
def lateralsuface_cylinder(radius: float, height: float) -> float:
"""
Calculate the lateral surface area of a cylinder.
Parameters:
radius (float): The radius of the cylinder.
height (float): The height of the cylinder.
Returns:
float: The lateral surface area (2 * π * r * h).
"""
return 2 * math.pi * radius * height
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试