Skip to content

Commit aa82c24

Browse files
authored
Update stepper.jl
1 parent df8cb0e commit aa82c24

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/stepper.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
chain = sample(
4949
MyModel(), MySampler(), N; discard_initial=discard_initial, progress=false
5050
)
51-
@test all(as[i] === chain[i].a for i in 1:N)
52-
@test all(bs[i] === chain[i].b for i in 1:N)
51+
@test all(as[i] == chain[i].a for i in 1:N)
52+
@test all(bs[i] == chain[i].b for i in 1:N)
5353
end
5454

5555
@testset "Thin chain by a factor of `thinning`" begin
@@ -68,7 +68,8 @@
6868
# Repeat sampling with `sample`.
6969
Random.seed!(1234)
7070
chain = sample(MyModel(), MySampler(), N; thinning=thinning, progress=false)
71-
@test all(as[i] === chain[i].a for i in 1:N)
72-
@test all(bs[i] === chain[i].b for i in 1:N)
71+
@test as[1] === chain[1].a === missing
72+
@test all(as[i] == chain[i].a for i in 2:N)
73+
@test all(bs[i] == chain[i].b for i in 1:N)
7374
end
7475
end

0 commit comments

Comments
 (0)