Skip to content

Commit

Permalink
Make sure the v test is increasing
Browse files Browse the repository at this point in the history
  • Loading branch information
cc7768 committed Nov 9, 2017
1 parent 5fce79f commit 7948703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_modeltool.jl
Expand Up @@ -46,7 +46,7 @@

# Test "extrapolation evaluations"
@test isapprox(v(0.5e-10), v(1e-10) + derivative(v, 1e-10)*(0.5e-10 - 1e-10))
@test v(-0.5) < v(-0.1) # Make sure it doesn't fail with negative values
@test v(-0.5) > v(-0.1) # Make sure it doesn't fail with negative values

@test_throws ErrorException CRRAUtility(1.0) # Test error throwing at ϕ=1.0
end
Expand Down

0 comments on commit 7948703

Please sign in to comment.