Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Nov 4, 2024
1 parent e884847 commit d61ec71
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/univariate/discrete/geometric.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ using FiniteDifferences
test_cgf(Geometric(0.1), (1f-1, -1e6))
test_cgf(Geometric(0.5), (1f-1, -1e6))
end

@testset "Support" begin
@test rand(Geometric(1)) == 0
@test_throws DomainError Geometric(0)
end

0 comments on commit d61ec71

Please sign in to comment.