Skip to content

Commit

Permalink
Add consistency tests for StoichSubstance
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Jun 4, 2022
1 parent b324e7c commit decda93
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/data/consistency-cases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,12 @@ compound-lattice:
- {T: 725.0 K, P: 1.0 atm}
- {T: 825.0 K, P: 50.0 bar}
- {T: 825.0 K, P: 50.0 bar, X: {Li7Si3(s): 0.3, Li(i): 0.5, V(i): 0.2}}

fixed-stoichiometry:
setup:
file: thermo-models.yaml
phase: KCl(s)
states:
- {T: 300, P: 1 atm}
- {T: 300, P: 10 atm}
- {T: 500, P: 10 atm}
6 changes: 6 additions & 0 deletions test/thermo/consistency.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,4 +499,10 @@ INSTANTIATE_TEST_SUITE_P(CompoundLattice, TestConsistency,
testing::ValuesIn(getStates("compound-lattice")))
);

INSTANTIATE_TEST_SUITE_P(FixedStoichiometry, TestConsistency,
testing::Combine(
testing::Values(getSetup("fixed-stoichiometry")),
testing::ValuesIn(getStates("fixed-stoichiometry")))
);

}

0 comments on commit decda93

Please sign in to comment.