Skip to content

Commit

Permalink
remove duplicate type tests for LocationScale
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-Portal committed Dec 20, 2023
1 parent 1c80dec commit bbfac2a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test/interface/location_scale.jl
Expand Up @@ -25,16 +25,18 @@
MvNormal(μ, Σ)
end

@testset "eltype" begin
@test eltype(q) == realtype
end

@testset "logpdf" begin
z = rand(q)
@test eltype(z) == realtype
@test logpdf(q, z) logpdf(q_true, z) rtol=realtype(1e-2)
@test eltype(logpdf(q, z)) == realtype
end

@testset "_logpdf" begin
z = rand(q)
@test eltype(z) == realtype
@test Distributions._logpdf(q, z) logpdf(q_true, z) rtol=realtype(1e-2)
@test eltype(Distributions.logpdf(q, z)) == realtype
end
Expand All @@ -48,10 +50,6 @@
@test length(q) == n_dims
end

@testset "eltype" begin
@test eltype(q) == realtype
end

@testset "statistics" begin
@testset "mean" begin
@test eltype(mean(q)) == realtype
Expand Down Expand Up @@ -129,7 +127,7 @@
end
end

@testset "Diagonal destructure" for
@testset "Diagonal destructure" begin
n_dims = 10
μ = zeros(n_dims)
L = ones(n_dims)
Expand Down

0 comments on commit bbfac2a

Please sign in to comment.