Skip to content

Commit

Permalink
Fix const qualifier for vector of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Hanlon committed Jun 1, 2021
1 parent d24f5c6 commit dbbe146
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/PathTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ BOOST_FIXTURE_TEST_CASE(through_registers, TestContext) {
{
// Fanout: in
auto paths = np->getAllFanOut("in");
std::vector<const std::string> endPoints = {"out", "basic_ff_chain.out", "basic_ff_chain.a", "basic_ff_chain.b"};
std::vector<std::string> endPoints = {"out", "basic_ff_chain.out", "basic_ff_chain.a", "basic_ff_chain.b"};
BOOST_TEST(paths.size() == endPoints.size());
for (auto path : paths) {
BOOST_TEST((std::find(endPoints.begin(), endPoints.end(), path.back()->getName()) != endPoints.end()));
Expand All @@ -609,7 +609,7 @@ BOOST_FIXTURE_TEST_CASE(through_registers, TestContext) {
{
// Fanout: out
auto paths = np->getAllFanIn("out");
std::vector<const std::string> startPoints = {"in", "basic_ff_chain.in", "basic_ff_chain.a", "basic_ff_chain.b"};
std::vector<std::string> startPoints = {"in", "basic_ff_chain.in", "basic_ff_chain.a", "basic_ff_chain.b"};
BOOST_TEST(paths.size() == startPoints.size());
for (auto path : paths) {
BOOST_TEST((std::find(startPoints.begin(), startPoints.end(), path.front()->getName()) != startPoints.end()));
Expand Down

0 comments on commit dbbe146

Please sign in to comment.