From 1efccbeea7355cb90c5a70075fa4337b8230c1aa Mon Sep 17 00:00:00 2001 From: Dahua Lin Date: Sat, 8 Nov 2014 17:19:49 +0800 Subject: [PATCH] minor update of testutils --- src/testutils.jl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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