Skip to content

Commit c422472

Browse files
committed
fix sonar cloud
Signed-off-by: Martijn Govers <[email protected]>
1 parent 64d5439 commit c422472

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/cpp_unit_tests/test_transformer_tap_regulator.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,16 @@ TEST_CASE("Test transformer tap regulator") {
199199
}
200200

201201
SUBCASE("Test default line drop compensation") {
202-
TransformerTapRegulator transformer_tap_regulator{{.id = 1,
203-
.regulated_object = 2,
204-
.status = true,
205-
.control_side = ControlSide::from,
206-
.u_set = 10.0e3,
207-
.u_band = 1.0e3},
208-
ComponentType::branch,
209-
u_rated};
210-
211-
TransformerTapRegulatorCalcParam const param = transformer_tap_regulator.calc_param<symmetric_t>();
202+
TransformerTapRegulator regulator{{.id = 1,
203+
.regulated_object = 2,
204+
.status = true,
205+
.control_side = ControlSide::from,
206+
.u_set = 10.0e3,
207+
.u_band = 1.0e3},
208+
ComponentType::branch,
209+
u_rated};
210+
211+
TransformerTapRegulatorCalcParam const param = regulator.calc_param<symmetric_t>();
212212
CHECK(!is_nan(param.z_compensation));
213213
CHECK(param.z_compensation.real() == doctest::Approx(0.0));
214214
CHECK(param.z_compensation.imag() == doctest::Approx(0.0));

0 commit comments

Comments
 (0)