X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=t%2Fcantor.c;h=e6ce28fb5fae40bb2b4cfa71b32eae085637afb3;hb=b23bb67f8c88ba23499d1c6e7b444b6561aeb49a;hp=a2e929087ea859b07937a024b5889c6c3b3f40bc;hpb=8f632e5a3428101590e8cbe94025060c5c3b5ecf;p=hexagon diff --git a/t/cantor.c b/t/cantor.c index a2e9290..e6ce28f 100644 --- a/t/cantor.c +++ b/t/cantor.c @@ -1,6 +1,6 @@ #include -#include "hexmap.h" +#include "hexagon.h" #include "tap.h" @@ -10,7 +10,7 @@ int main(void) { int hex; int x, y; - plan_tests(81*2); + plan_tests(81*4); for (x=-4;x<=4;x++) { for (y=-4;y<=4;y++) { @@ -18,6 +18,8 @@ int main(void) { HL_cantor_arrays(hex, xy, ijk); ok(x == xy[0], "x check %d %d", x, y); ok(y == xy[1], "y check %d %d", x, y); + ok(x == HL_cantor_x(hex), "reverse check x %d %d",hex,x); + ok(x == HL_cantor_x(hex), "reverse check y %d %d",hex,y); } }