测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 345 字符 |
模型生成的代码 (345 字符)
def sort_numeric_strings(lst):
"""
Sort a list of numeric strings numerically and return a list of integers.
Args:
lst (list of str): List of strings representing numbers (e.g., '4', '-12').
Returns:
list of int: Sorted list of integers in ascending order.
"""
return sorted(int(s) for s in lst)
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试