Refactored material ID list parser
Material ID list parser for media has been moved to a separate function. Extensive tests covering many corner cases have been added.
The parser is used to parse this part of the prj file:
<media>
<medium id="0,1"> <!-- < ---------------- that list -->
<phases>
<phase>
<type>AqueousLiquid</type>
<properties>
<property>
<name>specific_heat_capacity</name>
<type>Constant</type>
<value>4280.0</value>
The unit tests use gmock, which is bundled together with gtest, to compare entire STL containers (vectors, lists).
-
Feature description was added to the changelog -
Tests covering your feature were added? -
Any new feature or behavior change was documented?