]>
pd.if.org Git - hexagon/blobdiff - t/distance.c
-#include "hexmap.h"
+#include "hexagon.h"
#include "tap.h"
}
int main(void) {
- plan_tests(5);
+ plan_tests(8);
dcheck(1,1,2,1,1);
dcheck(1,1,2,2,2);
dcheck(2,2,2,1,1);
dcheck(1,1,2,3,3);
dcheck(3,3,3,3,0);
+ dcheck(0,0,1,1,1);
+ dcheck(-1,-1,1,2,4);
+ dcheck(-1,-1,-1,-2,1);
return exit_status();
}