1#[cfg(test)] 2mod tests { 3 #[test] 4 fn it_works() { 5 assert_eq!(4, add_one(3)); 6 } 7 fn add_one(x: i32) -> i32 { 8 x + 1 9 } 10}