diff --git a/src/testutils.jl b/src/testutils.jl index 109939248..07abfbe7b 100644 --- a/src/testutils.jl +++ b/src/testutils.jl @@ -83,10 +83,8 @@ function test_samples(s::Sampleable{Univariate, Discrete}, # the sampleable # check the consistency between probs and pdf if isa(s, Distribution) - if applicable(probs, s, rmin:rmax) - @test_approx_eq probs(s, rmin:rmax) p0 - end - if applicable(probs, s) + @test_approx_eq probs(s, rmin:rmax) p0 + if isbounded(s) @assert isfinite(vmin) && isfinite(vmax) @test_approx_eq probs(s) probs(s, vmin:vmax) end