Skip to content

Commit

Permalink
work around #56698
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner committed Nov 27, 2024
1 parent 9f2c4eb commit b89f6ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/ambiguous.jl
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ end
pop!(need_to_handle_undef_sparam, which(Base._totuple, (Type{Tuple{Vararg{E}}} where E, Any, Any)))
pop!(need_to_handle_undef_sparam, which(Base.eltype, Tuple{Type{Tuple{Any}}}))
pop!(need_to_handle_undef_sparam, first(methods(Base.same_names)))
pop!(need_to_handle_undef_sparam, which(which(sort, Tuple{Tuple{}}))
@test_broken isempty(need_to_handle_undef_sparam)
pop!(need_to_handle_undef_sparam, which(Base._cat, Tuple{Any, AbstractArray}))
pop!(need_to_handle_undef_sparam, which(Base.byteenv, (Union{AbstractArray{Pair{T,V}, 1}, Tuple{Vararg{Pair{T,V}}}} where {T<:AbstractString,V},)))
Expand Down
1 change: 1 addition & 0 deletions test/sorting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ function tuple_sort_test(x)
@test 0 == @allocated sort(x)
end
@testset "sort(::NTuple)" begin
@test sort(()) == ()
@test sort((9,8,3,3,6,2,0,8)) == (0,2,3,3,6,8,8,9)
@test sort((9,8,3,3,6,2,0,8), by=x->x÷3) == (2,0,3,3,8,6,8,9)
for i in 1:40
Expand Down

0 comments on commit b89f6ca

Please sign in to comment.