Skip to content

Commit

Permalink
fix(vrd): 🐛 error: manual Range::contains implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrousseau committed Aug 26, 2024
1 parent 25c0a54 commit 7a099f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ mod tests {

for _ in 0..1000 {
let result = rng.float();
assert!(result >= 0.0 && result < 1.0);
assert!((0.0..1.0).contains(&result));
assert!(result.is_finite());
}
}
Expand All @@ -91,7 +91,7 @@ mod tests {

for _ in 0..1000 {
let result = rng.double();
assert!(result >= 0.0 && result < 1.0);
assert!((0.0..1.0).contains(&result));
assert!(result.is_finite());
}
}
Expand Down

0 comments on commit 7a099f7

Please sign in to comment.