Skip to content

Commit a0d96e0

Browse files
committed
test fixes
1 parent d18233a commit a0d96e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/arraydist.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function Distributions.logpdf(dist::VectorOfUnivariate, x::AbstractMatrix{<:Real
1818
# eachcol breaks Zygote, so we need an adjoint
1919
return mapvcat(dist.v, eachcol(x)) do dist, c
2020
sum(map(c) do x
21-
logpdf(dist, c)
21+
logpdf(dist, x)
2222
end)
2323
end
2424
end

test/others.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if get_stage() in ("Others", "all")
1313
A = Matrix{Float64}(I, dim, dim)
1414
dW1 = Wishart(dim + 4, A)
1515
dW2 = TuringWishart(dim + 4, A)
16-
16+
mean = Distributions.mean
1717
@testset "$F" for F in (size, rank, mean, meanlogdet, entropy, cov, var)
1818
@test F(dW1) == F(dW2)
1919
end
@@ -29,7 +29,7 @@ if get_stage() in ("Others", "all")
2929
A = Matrix{Float64}(I, dim, dim)
3030
dIW1 = InverseWishart(dim + 4, A)
3131
dIW2 = TuringInverseWishart(dim + 4, A)
32-
32+
mean = Distributions.mean
3333
@testset "$F" for F in (size, rank, mean, cov, var)
3434
@test F(dIW1) == F(dIW2)
3535
end

0 commit comments

Comments
 (0)