Skip to content

Commit eb2b7a7

Browse files
committed
Uncomment tests that should be there
1 parent 9d48201 commit eb2b7a7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/mcmc/external_sampler.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,10 @@ using Turing.Inference: AdvancedHMC
8686
@test chn isa MCMCChains.Chains
8787
@test all(chn[:a] .== a)
8888
@test all(chn[:b] .== b)
89-
# TODO: Uncomment this once Turing v0.40 is released. In that version, logpdf
90-
# will be recalculated correctly for external samplers.
91-
# expected_logpdf = logpdf(Beta(2, 2), a) + logpdf(Normal(a), b)
92-
# @test all(chn[:lp] .== expected_logpdf)
93-
# @test all(chn[:logprior] .== expected_logpdf)
94-
# @test all(chn[:loglikelihood] .== 0.0)
89+
expected_logpdf = logpdf(Beta(2, 2), a) + logpdf(Normal(a), b)
90+
@test all(chn[:lp] .== expected_logpdf)
91+
@test all(chn[:logprior] .== expected_logpdf)
92+
@test all(chn[:loglikelihood] .== 0.0)
9593
end
9694

9795
function initialize_nuts(model::DynamicPPL.Model)

0 commit comments

Comments
 (0)