Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan committed Jul 28, 2023
1 parent ca0d01f commit 000d4c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,11 @@ end
@test quantile(Int8[-68, 60], 0.5) -4
@test quantile(Int32[-1e9, 2e9], 1.0) 2.0e9
@test quantile(Int64[-5e18, -2e18, 9e18], 1.0) 9.0e18

# check that quantiles are increasing with a, b and p even in corner cases
@test issorted(quantile([1.0, 1.0, 1.0+eps(), 1.0+eps()], range(0, 1, length=100)))
@test issorted(quantile([1.0, 1.0+1eps(), 1.0+2eps(), 1.0+3eps()], range(0, 1, length=100)))
@test issorted(quantile([1.0, 1.0+2eps(), 1.0+4eps(), 1.0+6eps()], range(0, 1, length=100)))
end

@testset "variance of complex arrays (#13309)" begin
Expand Down

0 comments on commit 000d4c1

Please sign in to comment.