X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=t%2Fdistance.c;h=71d7079a0af5143f026865ee083279fe18abe26d;hb=4d97bfb776c19fb9c817e7fa87e64fea0e2a37ff;hp=0f3ef9792b3ecf779c12e5b727bf072e6fbcd3d2;hpb=8f632e5a3428101590e8cbe94025060c5c3b5ecf;p=hexagon diff --git a/t/distance.c b/t/distance.c index 0f3ef97..71d7079 100644 --- a/t/distance.c +++ b/t/distance.c @@ -1,4 +1,4 @@ -#include "hexmap.h" +#include "hexagon.h" #include "tap.h" @@ -13,13 +13,16 @@ void dcheck(int x1, int y1, int x2, int y2, int expect) { } 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(); }