Skip to content

Commit

Permalink
minor update of testutils
Browse files Browse the repository at this point in the history
  • Loading branch information
lindahua committed Nov 8, 2014
1 parent 2afa38d commit 1efccbe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/testutils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1efccbe

Please sign in to comment.