Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxd3 committed Oct 28, 2024
1 parent 9d05e46 commit 3b05769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/abstractmcmc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ using Statistics: mean

θ = AbstractMCMC.getparams(s)
@test θ == t.z.θ
@test AbstractMCMC.setparams!!(s, θ) == s
@test AbstractMCMC.setparams!!(model, s, θ) == s

new_θ = randn(rng, 2)
new_state = AbstractMCMC.setparams!!(s, new_θ)
new_state = AbstractMCMC.setparams!!(model, s, new_θ)
@test AbstractMCMC.getparams(new_state) == new_θ
end

Expand Down

0 comments on commit 3b05769

Please sign in to comment.