Skip to content

Commit

Permalink
add some new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxd3 committed Oct 22, 2024
1 parent 161efff commit 933efe5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/abstractmcmc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ using Statistics: mean
θ = AbstractMCMC.getparams(s)
@test θ == t.z.θ
@test AbstractMCMC.setparams!!(s, θ) == s

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

samples_nuts = AbstractMCMC.sample(
Expand Down

0 comments on commit 933efe5

Please sign in to comment.