Skip to content

Commit 96dd6bb

Browse files
committed
minor
Signed-off-by: Santiago Figueroa Manrique <figueroa1395@gmail.com>
1 parent 53d605b commit 96dd6bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/cpp_unit_tests/test_current_sensor.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ auto const terminal_and_angle_measurement_types = [] {
4343

4444
TEST_CASE("Test current sensor") {
4545
SUBCASE("Symmetric Current Sensor") {
46-
for (auto const [terminal_type, angle_measurement_type] : terminal_and_angle_measurement_types) {
46+
for (auto const& [terminal_type, angle_measurement_type] : terminal_and_angle_measurement_types) {
4747
CAPTURE(terminal_type);
4848
CAPTURE(angle_measurement_type);
4949

@@ -131,7 +131,7 @@ TEST_CASE("Test current sensor") {
131131
}
132132
}
133133
SUBCASE("Wrong measured terminal type") {
134-
for (auto const terminal_type :
134+
for (auto const& terminal_type :
135135
{MeasuredTerminalType::source, MeasuredTerminalType::shunt, MeasuredTerminalType::load,
136136
MeasuredTerminalType::generator, MeasuredTerminalType::node}) {
137137
for (auto const angle_measurement_type :
@@ -148,7 +148,7 @@ TEST_CASE("Test current sensor") {
148148
SUBCASE("Symmetric calculation parameters") {
149149
double const u_rated = 10.0e3;
150150
double const base_current = base_power_3p / u_rated / sqrt3;
151-
for (auto const [terminal_type, angle_measurement_type] : terminal_and_angle_measurement_types) {
151+
for (auto const& [terminal_type, angle_measurement_type] : terminal_and_angle_measurement_types) {
152152
CurrentSensor<symmetric_t> sym_current_sensor{{.id = 1,
153153
.measured_object = 1,
154154
.measured_terminal_type = terminal_type,

0 commit comments

Comments
 (0)