Predefined mixtures working in PropsSI now

Added Catch test

``` python
In [1]: import CoolProp

In [2]: CoolProp.CoolProp.PropsSI('D','P',101325,'T',300,'Air.mix')
Out[2]: 1.1766975266680577
```

Closes https://github.com/CoolProp/CoolProp/issues/287

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-12-05 11:24:29 -05:00
parent 93305f0413
commit 0cb02a3e2f
5 changed files with 39 additions and 4 deletions

View File

@@ -1322,6 +1322,17 @@ TEST_CASE("Test that saturation solvers solve all the way to T = Tc", "[sat_T_to
}
}
TEST_CASE("Predefined mixtures", "[predefined_mixtures]")
{
SECTION("PropsSI"){
double val = PropsSI("Dmolar","P",101325,"T",300,"Air.mix");
std::string err = get_global_param_string("errstring");
CAPTURE(val);
CAPTURE(err);
CHECK(ValidNumber(val));
}
}
TEST_CASE("Test that reference states are correct", "[reference_states]")
{
std::vector<std::string> fluids = strsplit(CoolProp::get_global_param_string("fluids_list"),',');