+static void test_shortcut2(void)
+{
+ struct shortcut2_graph s2g;
+
+ shortcut2_graph_init(&s2g);
+
+ ok1(aga_dijkstra_start(&s2g.sg.g, &s2g.sg.nodes[1]) == 0);
+ aga_dijkstra_all_paths(&s2g.sg.g);
+ ok1(aga_error(&s2g.sg.g) == AGA_ERR_NEGATIVE_COST);
+ aga_finish(&s2g.sg.g);
+}
+