Skip to content

Commit 0ecdcce

Browse files
Format
1 parent 0893eac commit 0ecdcce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/smc.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,25 +150,25 @@
150150
@test all(isone(p.trajectory.f.x) for p in chains_pg)
151151
@test mean(x.logevidence for x in chains_pg) -2 * log(2) atol = 0.01
152152
end
153-
153+
154154
@testset "Replay reference" begin
155155
mutable struct Model <: AbstractMCMC.AbstractModel
156156
a::Float64
157157
b::Float64
158158

159159
Model() = new()
160160
end
161-
161+
162162
function (m::Model)(rng)
163163
m.a = rand(rng, Normal())
164164
AdvancedPS.observe(Normal(), m.a)
165165

166166
m.b = rand(rng, Normal())
167-
AdvancedPS.observe(Normal(), m.b)
167+
return AdvancedPS.observe(Normal(), m.b)
168168
end
169169

170170
pg = AdvancedPS.PG(1)
171-
first, second = sample(Model(), pg, 2);
171+
first, second = sample(Model(), pg, 2)
172172

173173
first_model = first.trajectory.f
174174
second_model = second.trajectory.f

0 commit comments

Comments
 (0)