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 1, 2017
1 parent 21e075b commit 3005a12
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, SVector(0,0,-0.2), SVector(0.2,2π,0.2))[1] (22502//140625)*π
end
end

0 comments on commit 3005a12

Please sign in to comment.