-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-add almost all integration tests into DPPL test suite proper
- Loading branch information
1 parent
9494f3a
commit 6eebe2f
Showing
6 changed files
with
386 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@testset "model_utils.jl" begin | ||
@testset "value_iterator_from_chain" begin | ||
@testset "$model" for model in DynamicPPL.TestUtils.DEMO_MODELS | ||
chain = make_chain_from_prior(model, 10) | ||
for (i, d) in enumerate(value_iterator_from_chain(model, chain)) | ||
for vn in keys(d) | ||
val = DynamicPPL.getvalue(d, vn) | ||
for vn_leaf in DynamicPPL.varname_leaves(vn, val) | ||
val_leaf = DynamicPPL.getvalue(d, vn_leaf) | ||
@test val_leaf == chain[i, Symbol(vn_leaf), 1] | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.