Skip to content

Commit

Permalink
fix test after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
lxvm committed Mar 2, 2024
1 parent 74e4def commit ded5ee0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/inf_integral_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,18 @@ end

@testset "Caching interface" begin
# two distinct semi-infinite transformations should still work as expected
(; f, domain, solution) = problems[8]
f = (x, p) -> pdf(Normal(0.00, 1.00), x)
domain = (0.0, -Inf)
solution = -0.5
prob = IntegralProblem(f, domain)
alg = QuadGKJL()
cache = init(prob, alg; abstol, reltol)
sol = solve!(cache)
@test abs(only(sol.u) - solution) < max(abstol, reltol * abs(solution))
@test sol.prob == IntegralProblem(f, domain)
@test sol.alg == alg
(; domain, solution) = problems[9]
domain = (-Inf, 0.0)
solution = 0.5
cache.domain = domain
sol = solve!(cache)
@test abs(only(sol.u) - solution) < max(abstol, reltol * abs(solution))
Expand Down

0 comments on commit ded5ee0

Please sign in to comment.