Skip to content

Commit 35b5989

Browse files
committed
Add test.
1 parent ed8e86d commit 35b5989

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/sorting.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ end
302302
@test check_sort!(Float64, 10000, x -> rand(Float64); alg=CUDA.QuickSort)
303303
@test check_sort!(Float32, 10000, x -> rand(Float32); alg=CUDA.QuickSort)
304304
@test check_sort!(Float16, 10000, x -> rand(Float16); alg=CUDA.QuickSort)
305+
@test check_sort!(Tuple{Int,Int}, 10000, x -> (rand(Int), rand(Int)); alg=CUDA.QuickSort)
305306

306307
# non-uniform distributions
307308
@test check_sort!(UInt8, 100000, x -> round(255 * rand() ^ 2); alg=CUDA.QuickSort)
@@ -344,6 +345,7 @@ end
344345
@test check_sort!(Float64, 10000, x -> rand(Float64); alg=CUDA.BitonicSort)
345346
@test check_sort!(Float32, 10000, x -> rand(Float32); alg=CUDA.BitonicSort)
346347
@test check_sort!(Float16, 10000, x -> rand(Float16); alg=CUDA.BitonicSort)
348+
@test check_sort!(Tuple{Int,Int}, 10000, x -> (rand(Int), rand(Int)); alg=CUDA.BitonicSort)
347349

348350
# test various sizes
349351
@test check_sort!(Float32, 1, x -> rand(Float32); alg=CUDA.BitonicSort)

0 commit comments

Comments
 (0)