Skip to content

Commit e83c301

Browse files
committed
including very large data set for sort
1 parent 7a53622 commit e83c301

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/sort.jl

+8
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,14 @@ using InMemoryDatasets, PooledArrays, Random, Test, CategoricalArrays
141141
setformat!(dsl, 1:2=>fmtfun3)
142142
@test sortperm(dsl, :)==sortperm(dsr, :)
143143
@test sortperm(dsl, :, rev=true)==sortperm(dsr, :, rev=true)
144+
145+
ds = Dataset(rand(-100:1000000, 10^7, 3), :auto)
146+
sort!(ds, :)
147+
@test issorted(ds, :)
148+
sort!(ds, :, rev = true)
149+
@test issorted(ds, :, rev = true)
150+
sort!(ds, :, rev = [true, false, true])
151+
@test issorted(ds, :, rev = [true, false, true])
144152
end
145153

146154
@testset "_find_starts_of_groups" begin

0 commit comments

Comments
 (0)