Skip to content

Commit

Permalink
Merge pull request #2 from sebastienrousseau/feat/vrd
Browse files Browse the repository at this point in the history
fix(vrd): updated test_rand_bool_macro
  • Loading branch information
sebastienrousseau authored May 5, 2023
2 parents 2bedb0e + 6fbf8dd commit 6870fd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[alias]
xtask = "run --package xtask --bin xtask --"
2 changes: 1 addition & 1 deletion tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ fn test_random_range_macro() {
#[test]
fn test_rand_bool_macro() {
let mut rng = Random::new();
let p = 0.5;
let p = 1.0; // Set p to 1.0 to always generate true
let b = rand_bool!(rng, p);
assert!(b);
}
Expand Down

0 comments on commit 6870fd2

Please sign in to comment.