Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Sep 15, 2019
1 parent 2ef2e66 commit a43d7f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/distributions/other.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ impl<T> Distribution<Wrapping<T>> for Standard where Standard: Distribution<T> {
mod tests {
use super::*;
use crate::RngCore;
#[cfg(all(not(feature="std"), feature="alloc"))] use alloc::string::String;

#[test]
fn test_misc() {
Expand Down Expand Up @@ -232,7 +233,7 @@ mod tests {
test_samples(&Standard, 'a', &['\u{8cdac}', '\u{a346a}', '\u{80120}', '\u{ed692}', '\u{35888}']);
test_samples(&Alphanumeric, 'a', &['h', 'm', 'e', '3', 'M']);
test_samples(&Standard, false, &[true, true, false, true, false]);
test_samples(&Standard, Option::<bool>::None,
test_samples(&Standard, None as Option<bool>,
&[Some(true), None, Some(false), None, Some(false)]);
test_samples(&Standard, Wrapping(0i32), &[Wrapping(-2074640887),
Wrapping(-1719949321), Wrapping(2018088303),
Expand Down

0 comments on commit a43d7f1

Please sign in to comment.