Skip to content

Commit

Permalink
Improve descriptions of tests
Browse files Browse the repository at this point in the history
Co-authored-by: Hong Ge <[email protected]>
  • Loading branch information
penelopeysm and yebai authored Dec 18, 2024
1 parent 3be9bf6 commit f6e38de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/dynamicppl/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const gdemo_default = gdemo_d()
check_numerical(chn_p, [:x], [meanp]; atol=0.1)
check_numerical(chn_g, [:x], [meanp]; atol=0.1)
end
@testset "forbid global" begin
@testset "model with global variables" begin
xs = [1.5 2.0]
# xx = 1

Expand Down Expand Up @@ -100,6 +100,7 @@ const gdemo_default = gdemo_d()
chain = sample(gauss(x), PG(10), 10)
chain = sample(gauss(x), SMC(), 10)

# Test algorithm that does not support models with keyword arguments. See issue #2007 for more details.
@model function gauss2(::Type{TV}=Vector{Float64}; x) where {TV}
priors = TV(undef, 2)
priors[1] ~ InverseGamma(2, 3) # s
Expand Down Expand Up @@ -149,7 +150,7 @@ const gdemo_default = gdemo_d()
chain = sample(noreturn([1.5 2.0]), HMC(0.15, 6), 1000)
check_numerical(chain, [:s, :m], [49 / 24, 7 / 6])
end
@testset "observe" begin
@testset "observe with literals" begin
@model function test()
z ~ Normal(0, 1)
x ~ Bernoulli(1)
Expand Down

0 comments on commit f6e38de

Please sign in to comment.