Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Apr 26, 2019
1 parent 715c3af commit 9dc09fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ end

@testset "Ash" begin
x = randn(10_000)
o = ash(x, rng = -4:.01:4)
@test extrema(o)[1] extrema(x)[1] atol=0.2
@test extrema(o)[2] extrema(x)[2] atol=0.2
o = ash(x, rng = -7:.01:7)
@test extrema(o)[1] extrema(x)[1] atol=0.01
@test extrema(o)[2] extrema(x)[2] atol=0.01

for f in [mean, var, std, x -> quantile(x, .4), x -> quantile(x, .4:.1:.6)]
@test f(o) f(x) atol=.1
Expand Down

0 comments on commit 9dc09fa

Please sign in to comment.