Skip to content

Commit

Permalink
Update runtests.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
bkamins authored Oct 17, 2021
1 parent 6e233de commit d84deda
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,14 @@ end
@test quantile(skipmissing([1, missing, 2]), 0.5) === 1.5
@test quantile([1], 0.5) === 1.0

# randomized partialsort correctness test
Random.seed!(1234)
for i in 1:100, j in 1:20
x = rand(2000)
p = rand(j)
@test quantile(x, p) == [quantile(x, v) for v in p]
end

# make sure that type inference works correctly in normal cases
for T in [Int, BigInt, Float64, Float16, BigFloat, Rational{Int}, Rational{BigInt}]
for S in [Float64, Float16, BigFloat, Rational{Int}, Rational{BigInt}]
Expand Down

0 comments on commit d84deda

Please sign in to comment.