1pub mod gen_rand_num; 2pub use gen_rand_num::gen_rand_num; 3 4#[cfg(test)] 5mod tests { 6 use super::*; 7 8 #[test] 9 fn test_gen_rand_num() { 10 let rand_num = gen_rand_num(1, 100); 11 assert!(rand_num >= 1 && rand_num <= 100); 12 } 13}