Skip to content

Commit

Permalink
improve test case
Browse files Browse the repository at this point in the history
Signed-off-by: gaouizer <gilles.aouizerate@rte-france.com>
  • Loading branch information
gaouizer committed Jul 16, 2024
1 parent 101be5b commit 8455efb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extensions/iidm/resources/disMeasRef.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@
<dm:discreteMeasurement type="SWITCH_POSITION" valueType="STRING" value="CLOSED" valid="false">
<dm:property name="source" value="test"/>
</dm:discreteMeasurement>
<dm:discreteMeasurement type="OTHER" valueType="STRING" value="CLOSED" valid="false">
<dm:property name="source" value="test"/>
</dm:discreteMeasurement>
</dm:discreteMeasurements>
</iidm:extension>
<iidm:extension id="TWT">
Expand Down
7 changes: 7 additions & 0 deletions extensions/iidm/test/DiscreteMeasurementsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,13 @@ BOOST_FIXTURE_TEST_CASE(DiscreteMeasurementsXmlSerializerTest, test::ResourceFix
.setValid(false)
.putProperty("source", "test")
.add();
sw2.getExtension<DiscreteMeasurements>()
.newDiscreteMeasurement()
.setType(DiscreteMeasurement::Type::OTHER)
.setValue("CLOSED")
.setValid(false)
.putProperty("source", "test")
.add();

const std::string& networkStrRef = ResourceFixture::getResource("/disMeasRef.xml");

Expand Down

0 comments on commit 8455efb

Please sign in to comment.