]> git.ozlabs.org Git - ccan/blobdiff - ccan/agar/test/api-adjacency.c
aga,agar: New shortcut2 sample graph and testcases based on it
[ccan] / ccan / agar / test / api-adjacency.c
index c17ead55e3ae7631fcabda93a76b2d8573eb44c9..2b2637d277f2fc41dd8ca298a098234059bd3b87 100644 (file)
@@ -55,13 +55,15 @@ int main(void)
        struct chain_graphr cgr;
        struct grid_graphr ggr1, ggr2;
        struct error_graphr egr;
+       struct shortcut1_graphr s1gr;
+       struct shortcut2_graphr s2gr;
 
-       plan_tests(1 + 5 + 30 + 22 + 21 + 33 + 6);
+       plan_tests(1 + 5 + 30 + 22 + 21 + 33 + 6 + 6 + 6);
 
        trivial_graphr_init(&tgr);
        test_adjacency("trivial", &tgr.gr, trivial_adjacencyr);
 
-       parallel_graphr_init(&pgr, 3);
+       parallel_graphr_init(&pgr, 3, 0);
        test_adjacency("parallel nlinks 3", &pgr.gr,
                       parallel_adjacencyr_nlinks3);
 
@@ -82,5 +84,11 @@ int main(void)
        error_graphr_init(&egr);
        test_adjacency("error graph", &egr.gr, error_adjacencyr);
 
+       shortcut1_graphr_init(&s1gr);
+       test_adjacency("shortcut1 graph", &s1gr.gr, shortcut1_adjacencyr);
+
+       shortcut2_graphr_init(&s2gr);
+       test_adjacency("shortcut2 graph", &s2gr.gr, shortcut2_adjacencyr);
+       
        return exit_status();
 }