Skip to content

Commit

Permalink
tests for heterogeneous tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko committed Nov 3, 2024
1 parent 214f625 commit 695663d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/sorting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 695663d

Please sign in to comment.