#include #include "hexagon.h" #include "ctap.h" int main(void) { int hex; struct HL_hex in; struct HL_hex out; int x, y; plan(81*2); for (x=-4;x<=4;x++) { for (y=-4;y<=4;y++) { in.x = x; in.y = y; hex = HL_cantor(in); out = HL_uncantor(hex); is_int(x, out.x, "x check %d %d", x, y); is_int(y, out.y, "y check %d %d", x, y); } } return 0; }