5 void dcheck(int x1, int y1, int x2, int y2, int expect) {
7 from = HL_cantor_xy(x1,y1);
8 to = HL_cantor_xy(x2,y2);
9 dist = HL_distance(from,to);
11 "distance from (%02d, %02d) to (%02d, %02d) = %d (expect %d)\n",
12 x1, y1, x2, y2, dist, expect);
25 dcheck(-1,-1,-1,-2,1);