-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Make Bernoulli produce Bools (#1079)""
This reverts commit 0574a0f.
- Loading branch information
1 parent
5f21e01
commit a6174ae
Showing
3 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
using Distributions | ||
using Test, Random | ||
|
||
@test typeof(rand(Bernoulli())) == Int | ||
@test typeof(rand(Bernoulli(), 10)) == Vector{Int} | ||
@test rand(Bernoulli()) isa Bool | ||
@test rand(Bernoulli(), 10) isa Vector{Bool} |