]> pd.if.org Git - hexagon/blobdiff - t/within.c
use ctap
[hexagon] / t / within.c
index 143b7a864df5b869f4fa35e4ceca1f393656d8f7..488430929ec9b06a1a253e1236ecb99b10890716 100644 (file)
@@ -1,4 +1,4 @@
-#include "hexmap.h"
+#include "hexagon.h"
 
 #include "tap.h"
 
@@ -9,11 +9,11 @@ int main(void) {
        int x, y, i, count;
        int range[32];
 
-       plan_tests(1);
+       plan(1);
 
        start = HL_cantor_xy(3,3);
        count = HL_hexes_within_range(start, 2, range, 0);
        ok(count == 18, "18 hexes within 2 hexes of 3,3");
 
-       return exit_status();
+       return 0;
 }