File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -199,16 +199,16 @@ TEST_CASE("Test transformer tap regulator") {
199
199
}
200
200
201
201
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 >();
212
212
CHECK (!is_nan (param.z_compensation ));
213
213
CHECK (param.z_compensation .real () == doctest::Approx (0.0 ));
214
214
CHECK (param.z_compensation .imag () == doctest::Approx (0.0 ));
You can’t perform that action at this time.
0 commit comments