We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af8ede0 + b2b33f9 commit 98e46eaCopy full SHA for 98e46ea
test/distribution_wrappers.jl
@@ -0,0 +1,17 @@
1
+using DynamicPPL
2
+using Distributions
3
+using Bijectors
4
+
5
+@testset "distribution_wrappers.jl" begin
6
+ d = Normal()
7
+ nd = DynamicPPL.NoDist(d)
8
9
+ # Smoke test
10
+ rand(nd)
11
12
+ # Actual tests
13
+ @test minimum(nd) == -Inf
14
+ @test maximum(nd) == Inf
15
+ @test logpdf(nd, 15.0) == 0
16
+ @test Bijectors.logpdf_with_trans(nd, 0) == 0
17
+end
test/runtests.jl
@@ -12,4 +12,5 @@ turnprogress(false)
include("sampler.jl")
include("prob_macro.jl")
include("independence.jl")
+ include("distribution_wrappers.jl")
end
0 commit comments