7 void pcheck(struct HL_astar *p, int x1, int y1, int x2, int y2, int expect) {
10 from = HL_cantor_xy(x1,y1);
11 to = HL_cantor_xy(x2,y2);
18 dist = HL_findpath(p,0);
19 ok(p->error == 0, "found path from (%02d, %02d) to (%02d, %02d) with no error",
22 "found path from (%02d, %02d) to (%02d, %02d) path length = %d (expect %d)",
23 x1, y1, x2, y2, dist, expect);
26 /* make hex 55 missing */
27 int neighbor55(int hex, int dir) {
31 neighbor = HL_adjacent_hex(hex, dir++);
32 } while (neighbor == HL_cantor_xy(5,5));
47 pcheck(p, 1,1, 10000,10000, 14999);