Skip to content

Commit e3fe89d

Browse files
authored
Add tests for support of binomial distribution (#127)
1 parent 53e8888 commit e3fe89d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/misc.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,11 @@ end
5555
end
5656
end
5757
end
58+
59+
# https://github.com/JuliaStats/StatsFuns.jl/issues/115
60+
@testset "support of binomial distribution" begin
61+
@test iszero(binompdf(1, 0.5, prevfloat(1.0)))
62+
@test iszero(binompdf(1, 0.5, nextfloat(1.0)))
63+
@test binomlogpdf(1, 0.5, prevfloat(1.0)) == -Inf
64+
@test binomlogpdf(1, 0.5, nextfloat(1.0)) == -Inf
65+
end

0 commit comments

Comments
 (0)