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