Mbpp/630

⚠️ 仅 Base 通过 Base: PASS Plus: FAIL
测试评估
指标结果
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]]