Skip to content

Commit a976a0a

Browse files
committed
Add test
1 parent 05a1eae commit a976a0a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/reducedim.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,3 +544,11 @@ end
544544
@testset "type stability (issue #43461)" begin
545545
@test (@inferred maximum(Float64, reshape(1:4,2,:); dims = 2)) == reshape([3,4],2,1)
546546
end
547+
548+
@testset "Min/Max initialization test" begin
549+
A = Vector{Union{Missing,Int}}(1:4)
550+
A[2] = missing
551+
@test @inferred(minimum(exp, A; dims = 1))[1] === missing
552+
@test @inferred(maximum(exp, A; dims = 1))[1] === missing
553+
@test @inferred(extrema(exp, A; dims = 1))[1] === (missing, missing)
554+
end

0 commit comments

Comments
 (0)