Skip to content

Commit

Permalink
Revert "add tests for sorting with non int eltypes (#149)"
Browse files Browse the repository at this point in the history
This reverts commit c924f96.
  • Loading branch information
mcabbott authored Mar 2, 2024
1 parent c924f96 commit 3eafa4d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ using NamedDims: unname
M = wrapdims(rand(Int8, 3,4), r='a':'c', c=2:5)
MN = NamedDimsArray(M.data.data, r='a':'c', c=2:5)
V = wrapdims(rand(1:99, 10), v=10:10:100)

VN = NamedDimsArray(V.data.data, v=10:10:100)
A3 = wrapdims(rand(Int8, 3,4,2), r='a':'c', c=2:5, p=[10.0, 20.0])

Expand Down Expand Up @@ -88,9 +87,6 @@ end
@testset "sort & reverse" begin

@test sort(V)(20) == V(20)
# need to test with non integer eltypes:
@test sort!(float.(V))(20) == V(20)
@test first(sort!(float.(A3); dims=1)) == first(sort(A3; dims=1))

@test axiskeys(sort(M, dims=:c), :c) isa Base.OneTo
@test axiskeys(sort(M, dims=:c), :r) == 'a':'c'
Expand Down

0 comments on commit 3eafa4d

Please sign in to comment.