Skip to content

Commit

Permalink
add unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
vandenman committed Sep 25, 2024
1 parent 0a4e298 commit 048d481
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/sampler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
chain1 = sample(model, sampler, 1; progress=false)
Random.seed!(1234)
chain2 = sample(model, sampler, 1; initial_params=nothing, progress=false)
@test_throws DimensionMismatch sample(model, sampler, 1; progress=false, initial_params=zeros(10))
@test chain1[1].metadata.m.vals == chain2[1].metadata.m.vals
@test chain1[1].metadata.s.vals == chain2[1].metadata.s.vals

Expand Down

0 comments on commit 048d481

Please sign in to comment.