测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | FAIL |
| 代码长度 | 422 字符 |
模型生成的代码 (422 字符)
def get_coordinates(coord):
"""
Given a coordinate tuple (x, y), return a list of all adjacent coordinates
including the point itself (a 3x3 block centered at (x, y)).
The coordinates are ordered row by row (increasing x, then increasing y).
"""
x, y = coord
result = []
for i in range(x - 1, x + 2):
for j in range(y - 1, y + 2):
result.append([i, j])
return result
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
[[1, 1, 1]]