File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 752752 for alg in safe_algs
753753 @test sort (1 : n, alg= alg, lt = (i,j) -> v[i]<= v[j]) == perm
754754 end
755- # Broken by the introduction of BracketedSort in #52006 which is unstable
756- @test_broken partialsort (1 : n, 172 , lt = (i,j) -> v[i]<= v[j]) == perm[172 ]
757- @test_broken partialsort (1 : n, 315 : 415 , lt = (i,j) -> v[i]<= v[j]) == perm[315 : 415 ]
755+ # This could easily break with minor heuristic adjustments
756+ # because partialsort is not even guaranteed to be stable:
757+ @test partialsort (1 : n, 172 , lt = (i,j) -> v[i]<= v[j]) == perm[172 ]
758+ @test partialsort (1 : n, 315 : 415 , lt = (i,j) -> v[i]<= v[j]) == perm[315 : 415 ]
758759
759760 # lt can be very poorly behaved and sort will still permute its input in some way.
760761 for alg in safe_algs
You can’t perform that action at this time.
0 commit comments