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 Dec 30, 2023
1 parent dab6d6c commit 3b0250c
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions tests/DataStructures/Graphs/TestPowerGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2652,12 +2652,12 @@ TEST_F ( TestPowerGridAcm2018MtsfFigure4b

try {
network_.TotalRealPowerGenerationAt<Vertices::GenerationStrategyDifferentiationType::totalVertexPowerGenerationPerSnapshot> ( static_cast<Types::vertexId>(9) );
} catch ( std::runtime_error const & error )
} catch ( std::runtime_error const & error )
{
EXPECT_THAT ( error.what(), MatchesRegex(assertionString.c_str()) );
} catch ( ... )
} catch ( ... )
{
FAIL() << "Expected std::runtime_error with message: "
FAIL() << "Expected std::runtime_error with message: "
<< assertionString;
}
}
Expand Down Expand Up @@ -2744,12 +2744,12 @@ TEST_F ( TestNetworkEmpty

try {
network_.TotalReactivePowerGenerationBoundAt<Vertices::GenerationStrategyDifferentiationType::totalVertexPowerGenerationPerSnapshot> ( static_cast<Types::vertexId>(0) );
} catch ( std::runtime_error const & error )
} catch ( std::runtime_error const & error )
{
EXPECT_THAT ( error.what(), MatchesRegex(assertionString.c_str()) );
} catch ( ... )
} catch ( ... )
{
FAIL() << "Expected std::runtime_error with message: "
FAIL() << "Expected std::runtime_error with message: "
<< assertionString;
}
}
Expand Down Expand Up @@ -2978,12 +2978,12 @@ TEST_F ( TestNetworkEmpty

try {
network_.TotalReactivePowerGenerationAt<Vertices::GenerationStrategyDifferentiationType::totalVertexPowerGenerationPerSnapshot> ( static_cast<Types::vertexId>(0) );
} catch ( std::runtime_error const & error )
} catch ( std::runtime_error const & error )
{
EXPECT_THAT ( error.what(), MatchesRegex(assertionString.c_str()) );
} catch ( ... )
} catch ( ... )
{
FAIL() << "Expected std::runtime_error with message: "
FAIL() << "Expected std::runtime_error with message: "
<< assertionString;
}
}
Expand Down Expand Up @@ -3014,12 +3014,12 @@ TEST_F ( TestPowerGridAcm2018MtsfFigure4a

try {
network_.TotalReactivePowerGenerationAt<Vertices::GenerationStrategyDifferentiationType::totalVertexPowerGenerationPerSnapshot> ( static_cast<Types::vertexId>(9) );
} catch ( std::runtime_error const & error )
} catch ( std::runtime_error const & error )
{
EXPECT_THAT ( error.what(), MatchesRegex(assertionString.c_str()) );
} catch ( ... )
} catch ( ... )
{
FAIL() << "Expected std::runtime_error with message: "
FAIL() << "Expected std::runtime_error with message: "
<< assertionString;
}
}
Expand Down Expand Up @@ -3070,12 +3070,12 @@ TEST_F ( TestPowerGridAcm2018MtsfFigure4b

try {
network_.TotalReactivePowerGenerationAt<Vertices::GenerationStrategyDifferentiationType::totalVertexPowerGenerationPerSnapshot> ( static_cast<Types::vertexId>(9) );
} catch ( std::runtime_error const & error )
} catch ( std::runtime_error const & error )
{
EXPECT_THAT ( error.what(), MatchesRegex(assertionString.c_str()) );
} catch ( ... )
} catch ( ... )
{
FAIL() << "Expected std::runtime_error with message: "
FAIL() << "Expected std::runtime_error with message: "
<< assertionString;
}
}
Expand Down Expand Up @@ -3148,12 +3148,12 @@ TEST_F ( TestNetworkEmpty

try {
network_.AddLoadAt ( static_cast<Types::vertexId>(0), loadProperties );
} catch ( std::runtime_error const & error )
} catch ( std::runtime_error const & error )
{
EXPECT_THAT ( error.what(), MatchesRegex(assertionString.c_str()) );
} catch ( ... )
} catch ( ... )
{
FAIL() << "Expected std::runtime_error with message: "
FAIL() << "Expected std::runtime_error with message: "
<< assertionString;
}
}
Expand Down Expand Up @@ -3208,12 +3208,12 @@ TEST_F ( TestPowerGridAcm2018MtsfFigure4a

try {
network_.AddLoadAt ( static_cast<Types::vertexId>(9), loadProperties );
} catch ( std::runtime_error const & error )
} catch ( std::runtime_error const & error )
{
EXPECT_THAT ( error.what(), MatchesRegex(assertionString.c_str()) );
} catch ( ... )
} catch ( ... )
{
FAIL() << "Expected std::runtime_error with message: "
FAIL() << "Expected std::runtime_error with message: "
<< assertionString;
}
}
Expand Down Expand Up @@ -3298,12 +3298,12 @@ TEST_F ( TestNetworkEmpty

try {
network_.AddLoadAt ( vertex, loadProperties );
} catch ( std::runtime_error const & error )
} catch ( std::runtime_error const & error )
{
EXPECT_THAT ( error.what(), MatchesRegex(assertionString.c_str()) );
} catch ( ... )
} catch ( ... )
{
FAIL() << "Expected std::runtime_error with message: "
FAIL() << "Expected std::runtime_error with message: "
<< assertionString;
}
}
Expand Down

0 comments on commit 3b0250c

Please sign in to comment.