Skip to content

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).

  1. Feature description was added to the changelog
  2. Tests covering your feature were added?
  3. Any new feature or behavior change was documented?
Edited by Christoph Lehmann

Merge request reports