Skip to content

Commit 3a9a758

Browse files
committed
Add tests
1 parent 5d1fc79 commit 3a9a758

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/runtests.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ using Test
8484
c2 = sample(m2, MetropolisHastings(p2), 100; chain_type=Vector{NamedTuple})
8585
c3 = sample(m3, MetropolisHastings(p3), 100; chain_type=Vector{NamedTuple})
8686
c4 = sample(m4, MetropolisHastings(p4), 100; chain_type=Vector{NamedTuple})
87+
88+
@test keys(c1[1]) == (:param_1, :lp)
89+
@test keys(c2[1]) == (:param_1, :param_2, :lp)
90+
@test keys(c3[1]) == (:a, :b, :lp)
91+
@test keys(c4[1]) == (:param_1, :lp)
8792
end
8893

8994
@testset "Initial parameters" begin

0 commit comments

Comments
 (0)