Skip to content

Commit

Permalink
Merge pull request #882 from JuliaCollections/eph/backport-rm-sort-pi…
Browse files Browse the repository at this point in the history
…racy

[backport] remove tests for `sort(::Dict)`
  • Loading branch information
oxinabox authored Dec 4, 2023
2 parents 3776698 + 430bec9 commit 64e2230
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions test/test_sorting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,9 @@
@test d == rev
end

@testset "sort unordered" begin
unordered = Dict(zip('a':'z', 26:-1:1))
@test sort(unordered) == forward
@test sort(unordered; rev=true) == rev
@test sort(unordered; byvalue=true) == rev
@test sort(unordered; byvalue=true, rev=true) == forward
end
end

@testset "Bug DataStructures.jl/#394" begin
@test sort(Dict(k=>string(k) for k in 1:3))[1] == "1"
@test sort(OrderedDict(k=>string(k) for k in 1:3))[1] == "1"
end
end

0 comments on commit 64e2230

Please sign in to comment.