mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Added tests for P,Y inputs, though the solvers are not done yet
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -79,10 +79,6 @@ AbstractState * AbstractState::factory(const std::string &backend, const std::st
|
||||
bool AbstractState::clear() {
|
||||
// Reset all instances of CachedElement and overwrite
|
||||
// the internal double values with -_HUGE
|
||||
this->_fluid_type = FLUID_TYPE_UNDEFINED;
|
||||
this->_phase = iphase_unknown;
|
||||
this->_forceSinglePhase = false;
|
||||
this->_forceTwoPhase = false;
|
||||
this->_R = _HUGE;
|
||||
|
||||
/// Ancillary curve values
|
||||
@@ -371,6 +367,10 @@ TEST_CASE("Check AbstractState","[AbstractState]")
|
||||
{
|
||||
CHECK_THROWS(shared_ptr<CoolProp::AbstractState> Water(CoolProp::AbstractState::factory("DEFINITELY_A_BAD_BACKEND", "Water")));
|
||||
}
|
||||
SECTION("good backend - helmholtz")
|
||||
{
|
||||
CHECK_THROWS(shared_ptr<CoolProp::AbstractState> Water(CoolProp::AbstractState::factory("HEOS", "Water")));
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user