Skip to content

Commit

Permalink
updated copy constructor test case
Browse files Browse the repository at this point in the history
  • Loading branch information
stasinosntaveas committed Feb 4, 2024
1 parent ec933a1 commit 41be804
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/graph/graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ TEST_CASE("testing copy constructor") {
g.add_edge(0, 3);
g.add_edge(3, 4);
graph<int> g1(g);
graph<int> g2 = g;
REQUIRE(g.dfs(1) == g1.dfs(1));
REQUIRE(g.dfs(1) == g2.dfs(1));
}

0 comments on commit 41be804

Please sign in to comment.