测试评估
| 指标 | 结果 |
|---|---|
| Base 测试 | PASS |
| Plus 测试 | FAIL |
| 代码长度 | 394 字符 |
模型生成的代码 (394 字符)
def get_coordinates(coord):
"""
Given a coordinate tuple (x, y), return a list of all adjacent coordinates
including the coordinate itself. Adjacent means all 8 surrounding cells and
the cell itself, forming a 3x3 grid.
"""
x, y = coord
result = []
for dx in [-1, 0, 1]:
for dy in [-1, 0, 1]:
result.append([x + dx, y + dy])
return result
Base 失败测试用例
- 无失败测试
Plus 失败测试用例
[[1, 1, 1]]