X-Git-Url: https://pd.if.org/git/?p=hexagon;a=blobdiff_plain;f=t%2Fastar.c;h=cb7f0434711c71dd59947a3fbc8e8d94d59351ee;hp=2ed40c07fc9072cf823c81306fc677d74d287751;hb=f4de9d8b5cc2646e133d8c387fa1de5814cfb453;hpb=8ca2b8a06b00066a20f744a61c9bcdd65949a344 diff --git a/t/astar.c b/t/astar.c index 2ed40c0..cb7f043 100644 --- a/t/astar.c +++ b/t/astar.c @@ -36,9 +36,8 @@ int neighbor55(int hex, int dir) { int main(void) { struct HL_astar *p; - int length; - plan_tests(17); + plan_tests(16); p = HL_astar_init(0); ok(p != NULL, "allocated astar struct"); @@ -46,12 +45,6 @@ int main(void) { ok(p->open == NULL, "initial open list empty"); ok(p->closed == NULL, "initial closed list empty"); - p->start = HL_cantor_xy(1, 1); - p->goal = HL_cantor_xy(1, 2); - - length = HL_findpath(p, 0); - ok(p->error == 0, "path finding returns no error"); - pcheck(p, 1,1, 1,3, 2); pcheck(p, 1,1, 2,1, 1); pcheck(p, 1,1, 2,2, 2);