Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 20, 2024
1 parent cd22ee3 commit 17d1861
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/helics/apps/Connector2StageTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ TEST(connector_2stage, three_fed_input)
EXPECT_EQ(conn1.madeConnections(), 1);
}


TEST(connector_2stage, three_fed_input_regex)
{
helics::FederateInfo fedInfo(helics::CoreType::TEST);
Expand All @@ -486,7 +485,9 @@ TEST(connector_2stage, three_fed_input_regex)
fedInfo.coreInitString = "-f3 --autobroker";
fedInfo.setProperty(HELICS_PROPERTY_TIME_PERIOD, 1.0);
helics::apps::Connector conn1("connector4", fedInfo);
conn1.addConnection("REGEX:Battery/EV(?<ev_num>.)_input_voltage", "REGEX:Charger/EV(?<ev_num>.)_output_voltage", InterfaceDirection::FROM_TO);
conn1.addConnection("REGEX:Battery/EV(?<ev_num>.)_input_voltage",
"REGEX:Charger/EV(?<ev_num>.)_output_voltage",
InterfaceDirection::FROM_TO);
fedInfo.coreInitString = "";
CheckFed cfed1("c1", fedInfo);
cfed1.addPotentialPubs({"Charger/EV1_output_voltage", "pub2"});
Expand All @@ -501,7 +502,7 @@ TEST(connector_2stage, three_fed_input_regex)
cfed1.executing();
cfed1.run(5);
cfed1.finalize();
});
});
vFed2.enterExecutingModeComplete();
std::vector<double> data;
if (inp1.isUpdated()) {
Expand Down

0 comments on commit 17d1861

Please sign in to comment.