Skip to content

Commit

Permalink
Update src/test_utils.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
torfjelde and github-actions[bot] authored Nov 11, 2024
1 parent b67f51b commit 1da4c6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,9 @@ function test_context(context::DynamicPPL.AbstractContext, model::DynamicPPL.Mod

# Setting the child context to a leaf should now change the leafcontext accordingly.
context_with_new_leaf = DynamicPPL.setleafcontext(context, leafcontext_new)
@test childcontext(context_with_new_leaf) === leafcontext(context_with_new_leaf) === leafcontext_new
@test childcontext(context_with_new_leaf) ===
leafcontext(context_with_new_leaf) ===
leafcontext_new

# Make sure that the we can evaluate the model with the context (i.e. that none of the tilde-functions are incorrectly overloaded).
# The tilde-pipeline contains two different paths: with `SamplingContext` as a parent, and without it.
Expand Down

0 comments on commit 1da4c6e

Please sign in to comment.