Skip to content

Commit

Permalink
mark broken tests for julia 1.6.0 partialsort! bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Apr 4, 2021
1 parent f8022f2 commit e8cdcb5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/human.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,16 @@ end
dist_exponent=dist_exponent, nshortlisted=nshortlisted);
dest_shortlists = humandisp.dest_shortlists

@testset "the highest value is the cell itself" begin
@test_broken (x->x[end].index).(humandisp.dest_shortlists) == Tuple.(collect(CartesianIndices(human_pop)))
end

@testset "precalc is simmetrical with simmetrical inputs" begin
a = zeros(5, 5)
b = zeros(5, 5)
@test (x->x.cumprop).(dest_shortlists[5, 5]) == (x->x.cumprop).(dest_shortlists[1, 1])
@test (x->x.cumprop).(dest_shortlists[2, 2]) == (x->x.cumprop).(dest_shortlists[4, 4])
# There is a bug in julia 1.6.0 partialsort!
@test_broken (x->x.cumprop).(dest_shortlists[5, 5]) == (x->x.cumprop).(dest_shortlists[1, 1])
@test_broken (x->x.cumprop).(dest_shortlists[2, 2]) == (x->x.cumprop).(dest_shortlists[4, 4])
@test a == reverse(reverse(b, dims=2), dims=1)
end

Expand Down

0 comments on commit e8cdcb5

Please sign in to comment.