X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;ds=sidebyside;f=t%2Fcantor.c;h=e6ce28fb5fae40bb2b4cfa71b32eae085637afb3;hb=b23bb67f8c88ba23499d1c6e7b444b6561aeb49a;hp=0f179d20e1c724b8b06ecc8c63648f268d6727f3;hpb=8e2913bfbd2ae3cd8a2d07b879f0e78e455fed6f;p=hexagon diff --git a/t/cantor.c b/t/cantor.c index 0f179d2..e6ce28f 100644 --- a/t/cantor.c +++ b/t/cantor.c @@ -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); } }