Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 1efccbee authored by Dahua Lin's avatar Dahua Lin

minor update of testutils

parent 2afa38d2
......@@ -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
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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment