Skip to content

Commit b95699e

Browse files
committed
JETTest only for VERSION ≥ 1.6
1 parent 0e37b6e commit b95699e

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

test/runtests.jl

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,23 @@ using MeasureBase
88
using Aqua
99
Aqua.test_all(MeasureBase; ambiguities=false, unbound_args=false)
1010

11-
using JETTest
11+
d = ∫exp(x -> -x^2, Lebesgue(ℝ))
1212

13-
@test_nodispatch density(Lebesgue(ℝ), 0.3)
13+
@static if VERSION 1.6
1414

15-
@test_nodispatch density(Dirac(0), 0.3)
16-
@test_nodispatch density(Dirac(0), 0)
15+
using JETTest
1716

18-
d = ∫exp(x -> -x^2, Lebesgue(ℝ))
17+
@test_nodispatch density(Lebesgue(ℝ), 0.3)
18+
19+
@test_nodispatch density(Dirac(0), 0.3)
20+
@test_nodispatch density(Dirac(0), 0)
21+
22+
1923

20-
@test_nodispatch density(d, 3)
24+
@test_nodispatch density(d, 3)
2125

22-
@test_nodispatch basemeasure(d)
26+
@test_nodispatch basemeasure(d)
27+
end
2328

2429
# function draw2(μ)
2530
# x = rand(μ)

0 commit comments

Comments
 (0)