diff --git a/test/sorting.jl b/test/sorting.jl index 4118391abf5d8d..ee7e2b86ee663d 100644 --- a/test/sorting.jl +++ b/test/sorting.jl @@ -126,6 +126,12 @@ end end test_zero_allocated(ntuple(identity, max_unrolled_length)) end + @testset "heterogeneous" begin + tup = (1, 2, 3, missing, missing) + for t ∈ (tup, (1, missing, 2, missing, 3), (missing, missing, 1, 2, 3)) + @test tup === @inferred sort(t) + end + end end @testset "partialsort" begin