From 114472559ee1b6905c641352250b1b3e0eaa9f42 Mon Sep 17 00:00:00 2001 From: Avril Date: Wed, 3 Mar 2021 16:19:26 +0000 Subject: [PATCH] remove redundant test --- shuffle3rs/src/main.rs | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/shuffle3rs/src/main.rs b/shuffle3rs/src/main.rs index 230f3ac..756283f 100644 --- a/shuffle3rs/src/main.rs +++ b/shuffle3rs/src/main.rs @@ -13,29 +13,6 @@ mod shuffle; fn main() { println!("Hello, world!"); - - #[cfg(test)] { - let mut values: Vec<_> = (0..100000i32).collect(); - let expected = values.clone(); - - let mut rng = { - use rand::prelude::*; - rand_chacha::ChaChaRng::from_seed([0xfa; 32]) - }; - let mut nrng = rng.clone(); - - println!("Start (first 10): {:?}", &values[..10]); - - values.shuffle(&mut rng); - - println!("Shuffled (first 10): {:?}", &values[..10]); - - values.unshuffle(&mut nrng); - - println!("Unshuffled (first 10): {:?}", &values[..10]); - - assert_eq!(&values[..], &expected[..]); - } } #[cfg(test)] mod test;