From 3b0250cba1270d74f1e5dfacb2572ee95798c395 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 30 Dec 2023 18:10:24 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/DataStructures/Graphs/TestPowerGrid.cpp | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/tests/DataStructures/Graphs/TestPowerGrid.cpp b/tests/DataStructures/Graphs/TestPowerGrid.cpp index 7bae06b7..84417bb6 100644 --- a/tests/DataStructures/Graphs/TestPowerGrid.cpp +++ b/tests/DataStructures/Graphs/TestPowerGrid.cpp @@ -2652,12 +2652,12 @@ TEST_F ( TestPowerGridAcm2018MtsfFigure4b try { network_.TotalRealPowerGenerationAt ( static_cast(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; } } @@ -2744,12 +2744,12 @@ TEST_F ( TestNetworkEmpty try { network_.TotalReactivePowerGenerationBoundAt ( static_cast(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; } } @@ -2978,12 +2978,12 @@ TEST_F ( TestNetworkEmpty try { network_.TotalReactivePowerGenerationAt ( static_cast(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; } } @@ -3014,12 +3014,12 @@ TEST_F ( TestPowerGridAcm2018MtsfFigure4a try { network_.TotalReactivePowerGenerationAt ( static_cast(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; } } @@ -3070,12 +3070,12 @@ TEST_F ( TestPowerGridAcm2018MtsfFigure4b try { network_.TotalReactivePowerGenerationAt ( static_cast(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; } } @@ -3148,12 +3148,12 @@ TEST_F ( TestNetworkEmpty try { network_.AddLoadAt ( static_cast(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; } } @@ -3208,12 +3208,12 @@ TEST_F ( TestPowerGridAcm2018MtsfFigure4a try { network_.AddLoadAt ( static_cast(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; } } @@ -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; } }