Skip to content

Commit 82348c8

Browse files
committed
Fix
1 parent a6ed8b9 commit 82348c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/testsuite/sorting.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@testsuite "sorting/sort" (AT, eltypes)->begin
22
# Fuzzy correctness testing
3-
@testset "$ET" for ET in eltypes[eltypes .<: Real]
3+
@testset "$ET" for ET in filter(x -> x <: Real, eltypes)
44
for _ in 1:10
55
num_elems = rand(1:100_000)
66
@test compare((A)->Base.sort!(A), AT, rand(ET, num_elems))
@@ -16,7 +16,7 @@ end
1616

1717
@testsuite "sorting/sortperm" (AT, eltypes)->begin
1818
# Fuzzy correctness testing
19-
@testset "$ET" for ET in eltypes[eltypes .<: Real]
19+
@testset "$ET" for ET in filter(x -> x <: Real, eltypes)
2020
for _ in 1:10
2121
num_elems = rand(1:100_000)
2222
@test compare((ix, A)->Base.sortperm!(ix, A), AT, zeros(Int32, num_elems), rand(ET, num_elems))
@@ -32,7 +32,7 @@ end
3232

3333
@testsuite "sorting/partialsort" (AT, eltypes)->begin
3434
local N = 10000
35-
@testset "$ET" for ET in eltypes[eltypes .<: Real]
35+
@testset "$ET" for ET in filter(x -> x <: Real, eltypes)
3636
@test compare((A)->Base.partialsort!(A, 1), AT, rand(ET, N))
3737
@test compare((A)->Base.partialsort!(A, 1; rev=true), AT, rand(ET, N))
3838

0 commit comments

Comments
 (0)