Skip to content

Commit 6e8bbe1

Browse files
committed
add discrete dist tests
1 parent 11c536c commit 6e8bbe1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/distributions.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,12 @@ separator()
155155
end
156156
end
157157
separator()
158-
158+
=#
159159
@testset "Multivariate discrete distributions" begin
160160
test_head("Testing: Multivariate discrete distributions")
161161
mult_disc_dists = [
162+
DistSpec(:((p) -> FillDist(Bernoulli(p), dim)), (0.45,), fill(1, dim)),
163+
DistSpec(:((p) -> ArrayDist(fill(Bernoulli(p), dim))), (0.45,), fill(1, dim)),
162164
DistSpec(:((p) -> Multinomial(2, p / sum(p))), (fill(0.5, 2),), [2, 0]),
163165
]
164166
for d in mult_disc_dists

0 commit comments

Comments
 (0)