Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner committed Apr 8, 2024
1 parent ca65324 commit 052467c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/samplers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ import Distributions:
@testset "p=$p" for p in Any[[1.0], [0.3, 0.7], [0.2, 0.3, 0.4, 0.1]]
test_samples(S(p), Categorical(p), n_tsamples)
test_samples(S(p), Categorical(p), n_tsamples, rng=rng)
@test ncategories(S(p)) == length(p)
end
end

@test string(AliasTable(Float16[1,2,3])) == "AliasTable with 3 entries"

## Binomial samplers

Expand Down

0 comments on commit 052467c

Please sign in to comment.