Skip to content

Commit 254f27f

Browse files
authored
Include and update tests for BetaBinomial (#1578)
1 parent 6ab4c1f commit 254f27f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/betabinomial.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ using Distributions
22
using Test
33

44
@testset "Log of Beta-binomial distribution" begin
5-
d = BetaBinomial(50, 0.2,0.6)
5+
d = BetaBinomial(50, 0.2, 0.6)
66

7-
for k in Base.OneTo(50)
7+
for k in 1:50
88
p = pdf(d, k)
99
lp = logpdf(d, k)
10-
@test_approx_eq lp log(p)
10+
@test lp log(p)
1111
@test insupport(d, k)
1212
end
1313
@test !insupport(d, 51)

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const tests = [
3737
"fit",
3838
"multinomial",
3939
"binomial",
40+
"betabinomial",
4041
"poissonbinomial",
4142
"dirichlet",
4243
"dirichletmultinomial",

0 commit comments

Comments
 (0)