Skip to content

Commit 88bf2cb

Browse files
committed
fix test weirdness
1 parent b95699e commit 88bf2cb

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

test/runtests.jl

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,19 @@ Aqua.test_all(MeasureBase; ambiguities=false, unbound_args=false)
1010

1111
d = ∫exp(x -> -x^2, Lebesgue(ℝ))
1212

13-
@static if VERSION 1.6
13+
if VERSION v"1.6"
14+
@eval using JETTest
1415

15-
using JETTest
16+
@eval begin
17+
@test_nodispatch density(Lebesgue(ℝ), 0.3)
1618

17-
@test_nodispatch density(Lebesgue(ℝ), 0.3)
19+
@test_nodispatch density(Dirac(0), 0.3)
20+
@test_nodispatch density(Dirac(0), 0)
21+
22+
@test_nodispatch density(d, 3)
1823

19-
@test_nodispatch density(Dirac(0), 0.3)
20-
@test_nodispatch density(Dirac(0), 0)
21-
22-
23-
24-
@test_nodispatch density(d, 3)
25-
26-
@test_nodispatch basemeasure(d)
24+
@test_nodispatch basemeasure(d)
25+
end
2726
end
2827

2928
# function draw2(μ)

0 commit comments

Comments
 (0)