Skip to content

Commit

Permalink
fix another CI problem
Browse files Browse the repository at this point in the history
  • Loading branch information
lxvm committed Nov 13, 2023
1 parent 260892d commit 47fd694
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ module Test19626
@test QuadGK.quadgk(f, lb, ub, atol=MockQuantity(0.0))[1]
QuadGK.quadgk(f, lb, ub, atol=MockQuantity(0.0), segbuf=buf)[1]
## inplace
fiip = (y, x) -> y[] = 1/(1+(x/oneunit(x))^2)
ibuf = QuadGK.alloc_segbuf(MockQuantity, Array{MockQuantity,0}, MockQuantity)
@test QuadGK.quadgk!(fiip, fill(MockQuantity(0.0)), lb, ub, atol=MockQuantity(0.0), norm=absgetindex)[1][]
QuadGK.quadgk!(fiip, fill(MockQuantity(0.0)), lb, ub, atol=MockQuantity(0.0), norm=absgetindex, segbuf=ibuf)[1][]
fiip = (y, x) -> y[1] = 1/(1+(x/oneunit(x))^2)
ibuf = QuadGK.alloc_segbuf(MockQuantity, Array{MockQuantity,1}, MockQuantity)
@test QuadGK.quadgk!(fiip, [MockQuantity(0.0)], lb, ub, atol=MockQuantity(0.0), norm=absfirst)[1][]
QuadGK.quadgk!(fiip, [MockQuantity(0.0)], lb, ub, atol=MockQuantity(0.0), norm=absgetindex, segbuf=ibuf)[1][]
## batch
fbatch = BatchIntegrand{Float64}((y, x) -> y .= 1 ./ (1 .+ (x ./ oneunit.(x)) .^ 2))
@test QuadGK.quadgk(fbatch, lb, ub, atol=MockQuantity(0.0))[1]
Expand Down

0 comments on commit 47fd694

Please sign in to comment.