Skip to content

Commit 2038f3f

Browse files
committed
added a test
1 parent 2af7d74 commit 2038f3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ using ForwardDiff
112112
# Set up the proposal.
113113
p1 = (x=RandomWalkProposal(Normal(0,.5)), y=RandomWalkProposal(Normal(0,.5)))
114114
AdvancedMH.is_symmetric_proposal(proposal::typeof(p1)) = true
115+
@test AdvancedMH.is_symmetric_proposal(p1)
115116

116117
# Sample from the posterior with initial parameters.
117118
chain1 = sample(m1, MetropolisHastings(p1), 100000; chain_type=Vector{NamedTuple})

0 commit comments

Comments
 (0)