1mod example; 2 3#[cfg(test)] 4mod tests { 5 #[test] 6 fn it_works() { 7 assert_eq!(2 + 2, 4); 8 } 9 10 #[test] 11 fn another_function() { 12 let b = Box::new("Hello"); 13 assert_eq!(*b, "Hello"); 14 } 15}