]> pd.if.org Git - hexagon/blobdiff - t/cantor.c
Added HL_fan[df] for opengl rendering support.
[hexagon] / t / cantor.c
index 0f179d20e1c724b8b06ecc8c63648f268d6727f3..e6ce28fb5fae40bb2b4cfa71b32eae085637afb3 100644 (file)
@@ -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);
                }
        }