Skip to content

Commit

Permalink
update usage of sort_int_range! in test to add lo, hi
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner committed Feb 22, 2022
1 parent e61902f commit 37fc321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sorting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -661,11 +661,11 @@ end
@test issorted(a)

a = view([9:-1:0;], :)::SubArray
Base.Sort.sort_int_range!(a, 10, 0) # test it supports non-Vector
Base.Sort.sort_int_range!(a, firstindex(a), lastindex(a), 10, 0) # test it supports non-Vector
@test issorted(a)

a = OffsetArray([9:-1:0;], -5)
Base.Sort.sort_int_range!(a, 10, 0)
Base.Sort.sort_int_range!(a, firstindex(a), lastindex(a), 10, 0)
@test issorted(a)
end

Expand Down

0 comments on commit 37fc321

Please sign in to comment.