Skip to content

Commit

Permalink
Better test for sample_bool
Browse files Browse the repository at this point in the history
  • Loading branch information
k88hudson-cfa committed Aug 27, 2024
1 parent fa7acb4 commit de14d50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ mod test {
fn sample_bool() {
let mut context = Context::new();
context.init_random(42);
let result = context.sample_bool(FooRng, 0.5);
assert!(result == true || result == false);
let _r: bool = context.sample_bool(FooRng, 0.5);
}
}

0 comments on commit de14d50

Please sign in to comment.