#[cfg(test)] mod random_bool { use cs_utils::{random_number, random_bool}; #[test] fn generates_bool() { let mut result = vec![]; let mut items_count = random_number(10..20); while items_count > 0 { result.push(random_bool()); items_count -= 1; } assert!( result.contains(&true), "Must contain \"true\" value.", ); assert!( result.contains(&false), "Must contain \"false\" value.", ); } }