Skip to content

Commit 320c8d8

Browse files
pratzlgithub-actions[bot]
authored andcommitted
:octocat: Applied clang-format.
1 parent 123b29c commit 320c8d8

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

tests/bellman_shortest_paths_tests.cpp

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -715,22 +715,21 @@ TEST_CASE("Bellman-Ford's General Shortest Distances", "[csv][vofl][shortest][di
715715
g, frankfurt_id, distance, weight, visitor, std::less<Distance>(), std::plus<Distance>());
716716
}
717717

718-
class Visitor
719-
{
720-
using G = std::vector<std::vector<int>>;
721-
using VD = graph::vertex_info<graph::vertex_id_t<G>, graph::vertex_reference_t<G>, void>;
718+
class Visitor {
719+
using G = std::vector<std::vector<int>>;
720+
using VD = graph::vertex_info<graph::vertex_id_t<G>, graph::vertex_reference_t<G>, void>;
722721

723-
public:
722+
public:
724723
void on_discover_vertex(VD const& v) {}
725724
};
726725

727726
TEST_CASE("Bellman-Ford compiles with a visitor", "[shortest][distances][bellman][general]") {
728727
init_console();
729-
728+
730729
std::vector<std::vector<int>> g = {{1}, {0}};
731-
std::vector<double> distances(g.size());
732-
std::vector<int> predecessor(g.size());
733-
auto one = [](auto&&) { return 1.0; };
734-
730+
std::vector<double> distances(g.size());
731+
std::vector<int> predecessor(g.size());
732+
auto one = [](auto&&) { return 1.0; };
733+
735734
(void)graph::bellman_ford_shortest_paths(g, 0, distances, predecessor, one, Visitor{});
736735
}

0 commit comments

Comments
 (0)