Skip to content

Commit 3272abe

Browse files
committed
Sorting tests formatting.
1 parent 00547db commit 3272abe

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

test/base/sorting.jl

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
using Random
22
using DataStructures
33

4-
@testset "quicksort" begin
5-
6-
import CUDA.QuickSortImpl: flex_lt, find_partition, quicksort!,
7-
partition_batches_kernel, consolidate_batch_partition, bubble_sort
4+
import CUDA.QuickSortImpl: flex_lt, find_partition, quicksort!, partition_batches_kernel,
5+
consolidate_batch_partition, bubble_sort
86

97
@testset "integer functions" begin
108
@test flex_lt(1, 2, false, isless, identity) == true
@@ -279,9 +277,6 @@ end
279277
end
280278
end
281279

282-
# XXX: some tests here make compute-sanitizer hang, but only on CI.
283-
# maybe related to the container set-up? try again once we use Sandbox.jl.
284-
285280
@testset "interface" begin
286281
@testset "quicksort" begin
287282
# pre-sorted
@@ -389,7 +384,7 @@ end
389384
@test check_sortperm(Float64, 1000000; rev=true)
390385
@test check_sortperm(Float64, 1000000; by=x->abs(x-0.5))
391386
@test check_sortperm(Float64, 1000000; rev=true, by=x->abs(x-0.5))
392-
387+
393388
if VERSION >= v"1.9"
394389
# Base.jl didn't implement sortperm(;dims) until 1.9
395390
@test check_sortperm(Float32, (100_000, 16); dims=1)
@@ -406,5 +401,3 @@ end
406401
# mismatched types (JuliaGPU/CUDA.jl#2046)
407402
@test check_sortperm!(collect(UInt64(1):UInt64(1000000)), Int64, 1000000)
408403
end
409-
410-
end

0 commit comments

Comments
 (0)