Skip to content

Commit

Permalink
Add a test for issue JuliaMath#4
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloferz committed Aug 4, 2017
1 parent 746ce58 commit 0cca5bb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,10 @@ end
end
@test HCubature.countevals(HCubature.Trivial()) == 1
end

@testset "axischoosing" begin
#Issue #4
let f = x -> 1.0 + (x[1] * x[3] * sin(x[2]))^2
@test hcubature(f, (0.0,0.0,-0.2), (0.2,2π,0.2), rtol=1e-6)[1] (22502//140625)*π rtol=1e-6
end
end

0 comments on commit 0cca5bb

Please sign in to comment.