Skip to content

Commit

Permalink
testThrows.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
DANA-Laboratory committed Jan 5, 2017
1 parent f6c9870 commit 4984bcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.jl
Expand Up @@ -35,12 +35,12 @@ include("testFluids.jl");
include("testParameters.jl");
#PropsSI
include("testConstants.jl");
#AbstractState_factory get_input_pair_index AbstractState_update get_param_index AbstractState_keyed_output AbstractState_free
#AbstractState_factory get_input_pair_index AbstractState_update get_param_index AbstractState_keyed_output AbstractState_free AbstractState_set_binary_interaction_double AbstractState_set_fractions
include("testLow.jl");
#set_reference_stateS
#F2K K2F
@test_approx_eq K2F(F2K(100)) 100
#HAPropsSI
dt=1e-3;
@test_approx_eq_eps (HAPropsSI("H", "T", 300+dt, "P", 100000, "Y", 0)-HAPropsSI("H", "T", 300-dt, "P", 100000, "Y", 0))/2/dt HAPropsSI("C", "T", 300, "P", 100000, "Y", 0) 2e-9
#AbstractState_set_fractions
include("testThrows.jl");
1 change: 1 addition & 0 deletions test/testThrows.jl
@@ -0,0 +1 @@
@test_throws ErrorException set_reference_stateS("Water", "DEFwe");

0 comments on commit 4984bcc

Please sign in to comment.