Skip to content

Commit 933efe5

Browse files
committed
add some new tests
1 parent 161efff commit 933efe5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/abstractmcmc.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ using Statistics: mean
2727
θ = AbstractMCMC.getparams(s)
2828
@test θ == t.z.θ
2929
@test AbstractMCMC.setparams!!(s, θ) == s
30+
31+
new_θ = randn(rng, 2)
32+
new_state = AbstractMCMC.setparams!!(s, new_θ)
33+
@test AbstractMCMC.getparams(new_state) == new_θ
3034
end
3135

3236
samples_nuts = AbstractMCMC.sample(

0 commit comments

Comments
 (0)