struct HL_astar *p;
int length;
- plan_tests(17);
+ plan_tests(16);
p = HL_astar_init(0);
ok(p != NULL, "allocated astar struct");
ok(p->open == NULL, "initial open list empty");
ok(p->closed == NULL, "initial closed list empty");
- p->start = HL_cantor_xy(1, 1);
- p->goal = HL_cantor_xy(1, 2);
-
- length = HL_findpath(p, 0);
- ok(p->error == 0, "path finding returns no error");
-
pcheck(p, 1,1, 1,3, 2);
pcheck(p, 1,1, 2,1, 1);
pcheck(p, 1,1, 2,2, 2);