测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | PASS |
| 代码长度 | 352 字符 |
模型生成的代码 (352 字符)
def issort_list(lst):
"""
Check whether the given list is sorted in non-decreasing order.
Args:
lst: A list of comparable elements.
Returns:
bool: True if the list is sorted, False otherwise.
"""
for i in range(len(lst) - 1):
if lst[i] > lst[i + 1]:
return False
return True
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
- 无失败测试