Skip to content

Commit

Permalink
Temporarily remove failing sorting tests (#52643)
Browse files Browse the repository at this point in the history
Tracked by issue #52642
  • Loading branch information
LilithHafner committed Dec 28, 2023
1 parent e7e8b89 commit e6e572e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions test/sorting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1061,14 +1061,15 @@ end
# it would be too much trouble to actually construct a valid pathological input, so we
# construct an invalid pathological input.
# This test is kind of sketchy because it passes invalid inputs to the function
for i in [1:6, 1:483, 1:957, 77:86, 118:478, 223:227, 231:970, 317:958, 500:501, 500:501, 500:501, 614:620, 632:635, 658:665, 933:940, 937:942, 997:1000, 999:1000]
x = rand(1:5, 1000)
@test partialsort(x, i, lt=(<=)) == sort(x)[i]
end
for i in [1, 7, 8, 490, 495, 852, 993, 996, 1000]
x = rand(1:5, 1000)
@test partialsort(x, i, lt=(<=)) == sort(x)[i]
end
# Temporarily removed due to flakey test failures. See #52642 for details.
# for i in [1:6, 1:483, 1:957, 77:86, 118:478, 223:227, 231:970, 317:958, 500:501, 500:501, 500:501, 614:620, 632:635, 658:665, 933:940, 937:942, 997:1000, 999:1000]
# x = rand(1:5, 1000)
# @test partialsort(x, i, lt=(<=)) == sort(x)[i]
# end
# for i in [1, 7, 8, 490, 495, 852, 993, 996, 1000]
# x = rand(1:5, 1000)
# @test partialsort(x, i, lt=(<=)) == sort(x)[i]
# end
end

# This testset is at the end of the file because it is slow.
Expand Down

0 comments on commit e6e572e

Please sign in to comment.