Skip to content

Commit

Permalink
Add tests for support of binomial distribution (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion authored Sep 29, 2021
1 parent 53e8888 commit e3fe89d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/misc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,11 @@ end
end
end
end

# https://github.com/JuliaStats/StatsFuns.jl/issues/115
@testset "support of binomial distribution" begin
@test iszero(binompdf(1, 0.5, prevfloat(1.0)))
@test iszero(binompdf(1, 0.5, nextfloat(1.0)))
@test binomlogpdf(1, 0.5, prevfloat(1.0)) == -Inf
@test binomlogpdf(1, 0.5, nextfloat(1.0)) == -Inf
end

0 comments on commit e3fe89d

Please sign in to comment.