Skip to content

Commit

Permalink
Fixed (or worked-around) an error which was showing in OcpGraphTest.t…
Browse files Browse the repository at this point in the history
…est_ocpGraphFromOutDegree in Release builds. See boostorg/range#83 for more details.
  • Loading branch information
Mikhail Katliar committed Feb 18, 2019
1 parent 01b4373 commit 4ea5e2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/ocp/OcpGraphTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ namespace tmpc :: testing
EXPECT_EQ(graph::adjacent_vertices(vertex(1, g), g)[0], 3);
EXPECT_EQ(graph::adjacent_vertices(vertex(2, g), g)[0], 4);

EXPECT_EQ(get(graph::edge_index, g, graph::out_edges(vertex(0, g), g)[0]), 0);
EXPECT_EQ(get(graph::edge_index, g, graph::out_edges(vertex(0, g), g)[1]), 1);
EXPECT_EQ(get(graph::edge_index, g, graph::out_edges(vertex(1, g), g)[0]), 2);
EXPECT_EQ(get(graph::edge_index, g, graph::out_edges(vertex(2, g), g)[0]), 3);
EXPECT_EQ(get(graph::edge_index, g, *next(graph::out_edges(vertex(0, g), g).begin(), 0)), 0);
EXPECT_EQ(get(graph::edge_index, g, *next(graph::out_edges(vertex(0, g), g).begin(), 1)), 1);
EXPECT_EQ(get(graph::edge_index, g, *next(graph::out_edges(vertex(1, g), g).begin(), 0)), 2);
EXPECT_EQ(get(graph::edge_index, g, *next(graph::out_edges(vertex(2, g), g).begin(), 0)), 3);
}


Expand Down

0 comments on commit 4ea5e2f

Please sign in to comment.