Skip to content

Commit 027cd31

Browse files
committed
fix test error
1 parent 3711a0c commit 027cd31

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/abstractmcmc.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ using Statistics: mean
2626

2727
θ = AbstractMCMC.getparams(s)
2828
@test θ == t.z.θ
29-
@test AbstractMCMC.setparams!!(model, s, θ) == s
30-
29+
new_state = AbstractMCMC.setparams!!(model, s, θ)
30+
@test new_state.transition.z.θ == θ
31+
@test new_state.transition.z.ℓπ == s.transition.z.ℓπ
32+
@test new_state.transition.z.ℓκ == s.transition.z.ℓκ
33+
@test new_state.transition.z.r == s.transition.z.r
34+
3135
new_θ = randn(rng, 2)
3236
new_state = AbstractMCMC.setparams!!(model, s, new_θ)
3337
@test AbstractMCMC.getparams(new_state) == new_θ

0 commit comments

Comments
 (0)