1pub mod queue; 2 3pub fn test_next(x: i32) -> i32 { 4 x + 1 5} 6 7#[cfg(test)] 8mod tests { 9 use super::*; 10 11 #[test] 12 fn it_works() { 13 assert_eq!(2 + 2, 4); 14 } 15 #[test] 16 fn same_as_it() { 17 assert_eq!(2, test_next(1)); 18 } 19}