From 2992883a2665350860c32e58e653507c9a65f002 Mon Sep 17 00:00:00 2001 From: Jishnu Bhattacharya Date: Mon, 26 Aug 2024 17:32:46 +0530 Subject: [PATCH 1/2] Relax Fill return type in mvlognormal tests --- test/multivariate/mvlognormal.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/multivariate/mvlognormal.jl b/test/multivariate/mvlognormal.jl index 89f923b889..1ec1d5468c 100644 --- a/test/multivariate/mvlognormal.jl +++ b/test/multivariate/mvlognormal.jl @@ -19,7 +19,7 @@ function test_mvlognormal(g::MvLogNormal, n_tsamples::Int=10^6, @test partype(g) == Float64 @test isa(mn, Vector{Float64}) if g.normal.μ isa Zeros{Float64,1} - @test md isa Fill{Float64,1} + @test md isa Union{Fill{Float64,1}, Ones{Float64,1}} else @test md isa Vector{Float64} end From fdae2031e27ef482eba786ca4c9291e48c6aaa18 Mon Sep 17 00:00:00 2001 From: Jishnu Bhattacharya Date: Mon, 26 Aug 2024 22:40:00 +0530 Subject: [PATCH 2/2] Use AbstractFill instead of Union Co-authored-by: David Widmann --- test/multivariate/mvlognormal.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/multivariate/mvlognormal.jl b/test/multivariate/mvlognormal.jl index 1ec1d5468c..7ef76bef2d 100644 --- a/test/multivariate/mvlognormal.jl +++ b/test/multivariate/mvlognormal.jl @@ -19,7 +19,7 @@ function test_mvlognormal(g::MvLogNormal, n_tsamples::Int=10^6, @test partype(g) == Float64 @test isa(mn, Vector{Float64}) if g.normal.μ isa Zeros{Float64,1} - @test md isa Union{Fill{Float64,1}, Ones{Float64,1}} + @test md isa FillArrays.AbstractFill{Float64,1} else @test md isa Vector{Float64} end