]> git.ozlabs.org Git - ccan/blobdiff - ccan/aga/test/api-adjacency.c
aga,agar: New shortcut2 sample graph and testcases based on it
[ccan] / ccan / aga / test / api-adjacency.c
index 8f6c6d55c7f18de9cb25afaa0b6631076814081c..6e5043017788272e6aa8f2b07163e49277d71c34 100644 (file)
@@ -62,8 +62,9 @@ int main(void)
        struct error_graph eg;
        struct traversal1_graph t1g;
        struct shortcut1_graph s1g;
+       struct shortcut2_graph s2g;
 
-       plan_tests(2 + 7 + 35 + 30 + 30 + 42 + 9 + 30 + 9);
+       plan_tests(2 + 7 + 35 + 30 + 30 + 42 + 9 + 30 + 9 + 9);
 
        trivial_graph_init(&tg);
        test_adjacency("trivial", &tg.sg, trivial_adjacency);
@@ -95,5 +96,8 @@ int main(void)
        shortcut1_graph_init(&s1g);
        test_adjacency("shortcut1 graph", &s1g.sg, shortcut1_adjacency);
 
+       shortcut2_graph_init(&s2g);
+       test_adjacency("shortcut2 graph", &s2g.sg, shortcut2_adjacency);
+
        return exit_status();
 }