Skip to content

Commit

Permalink
Remove type union
Browse files Browse the repository at this point in the history
  • Loading branch information
sethaxen committed Jan 18, 2023
1 parent f50b28a commit b3ebe37
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/ess.jl
Expand Up @@ -104,16 +104,15 @@ end
end

@testset "ESS and R̂ only promote eltype when necessary" begin
TM = Vector{Missing}
@testset for T in (Float32, Float64)
x = rand(T, 100, 4, 2)
TV = Vector{T}
@inferred Union{Tuple{TV,TV},Tuple{TM,TM}} ess_rhat(x)
@inferred Tuple{TV,TV} ess_rhat(x)
end
@testset "Int" begin
x = rand(1:10, 100, 4, 2)
TV = Vector{Float64}
@inferred Union{Tuple{TV,TV},Tuple{TM,TM}} ess_rhat(x)
@inferred Tuple{TV,TV} ess_rhat(x)
end
end

Expand Down

0 comments on commit b3ebe37

Please sign in to comment.