Skip to content

Commit afdb173

Browse files
committed
Re-add comment that shouldn't have vanished
1 parent 07946a7 commit afdb173

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/compiler.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ module Issue537 end
193193
varinfo = VarInfo(model)
194194
@test getlogjoint(varinfo) == lp
195195
@test varinfo_ isa AbstractVarInfo
196+
# During the model evaluation, its leaf context is changed to an InitContext, so
197+
# `model_` is not going to be equal to `model`. We can still check equality of `f`
198+
# though.
196199
@test model_.f === model.f
197200
@test model_.context isa DynamicPPL.InitContext
198201
@test model_.context.rng isa Random.AbstractRNG

0 commit comments

Comments
 (0)