Skip to content

Commit

Permalink
Apply suggestions from code review
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 Jul 17, 2023
1 parent 8f953f6 commit 4fef9d2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,14 @@ end
@test loglikelihood(model, x)
DynamicPPL.TestUtils.loglikelihood_true(model, x...)
@test logjoint(model, x) DynamicPPL.TestUtils.logjoint_true(model, x...)
@test logjoint(model, x) != DynamicPPL.TestUtils.logjoint_true_with_logabsdet_jacobian(model, x...)
@test logjoint(model, x) !=
DynamicPPL.TestUtils.logjoint_true_with_logabsdet_jacobian(model, x...)
# Ensure `varnames` is implemented.
vi = last(DynamicPPL.evaluate!!(model, SimpleVarInfo(OrderedDict()), SamplingContext()))
vi = last(
DynamicPPL.evaluate!!(
model, SimpleVarInfo(OrderedDict()), SamplingContext()
),
)
@test all(collect(keys(vi)) .== DynamicPPL.TestUtils.varnames(model))
# Ensure `posterior_mean` is implemented.
@test DynamicPPL.TestUtils.posterior_mean(model) isa typeof(x)
Expand Down

0 comments on commit 4fef9d2

Please sign in to comment.