#include "hexagon.h" #include "ctap.h" int main(void) { int hex, start, dist; int x, y, i; plan(294); for (x = -3 ; x <= 3; x++) { for (y = -3 ; y <= 3; y++) { start = HL_cantor_xy(x, y); for (i = 0; i < 6; i++) { hex = HL_adjhex(start, i); dist = HL_distance(hex, start); ok(dist == 1, "%d, %d direction %d distance one", x, y, i); } } } return 0; }