Skip to content

Commit

Permalink
Merge pull request #233 from JuliaStats/dw/fix_tests
Browse files Browse the repository at this point in the history
Fix tests with Distributions 0.25
  • Loading branch information
mschauer authored May 3, 2021
2 parents 425995a + a4fd76c commit 81120d3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/anderson_darling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,38 @@ using HypothesisTests: default_tail
d = DoubleExponential()
x = rand(d, n)
t = OneSampleADTest(x, Normal(mean(d), std(d)))
@test t. 10.9678 atol=0.1^4
@test t. 11.3969 atol=0.1^4
@test pvalue(t) 0.0 atol=0.1^4
t = OneSampleADTest(x, d)
@test t. 0.21942 atol=0.1^4
@test pvalue(t) 0.9842 atol=0.1^4
@test t. 0.6036 atol=0.1^4
@test pvalue(t) 0.6446 atol=0.1^4

d = Cauchy()
x = rand(Cauchy(), n)
t = OneSampleADTest(x, Normal())
@test pvalue(t) 0.0 atol=0.1^4
t = OneSampleADTest(x, d)
@test pvalue(t) 0.4228 atol=0.1^4
@test pvalue(t) 0.6773 atol=0.1^4

d = LogNormal()
x = rand(d, n)
t = OneSampleADTest(x, Normal(mean(d), std(d)))
@test pvalue(t) 0.0 atol=0.1^4
t = OneSampleADTest(x, d)
@test pvalue(t) 0.1569 atol=0.1^4
@test pvalue(t) 0.1055 atol=0.1^4

d = Uniform(-pi, 2pi)
x = rand(d, n)
t = OneSampleADTest(x, d)
@test pvalue(t) 0.5489 atol=0.1^4
@test pvalue(t) 0.5614 atol=0.1^4

x = rand(Uniform(0, 1.8), n)
t = OneSampleADTest(x, Uniform())
@test pvalue(t) 0.0 atol=0.1^4

x = rand(Exponential(), n)
t = OneSampleADTest(x, Exponential())
@test pvalue(t) 0.1153 atol=0.1^4
@test pvalue(t) 0.1086 atol=0.1^4
end

@testset "k-sample test" begin
Expand Down

2 comments on commit 81120d3

@mschauer
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/35926

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.10.4 -m "<description of version>" 81120d30d9376f532aee27950cf04d22613862db
git push origin v0.10.4

Please sign in to comment.