world() -> String1 pub fn world() -> String { 2 "world".to_owned() 3 } 4 5 #[cfg(test)] 6 mod test { 7 #[test] test_world()8 fn test_world() { 9 assert_eq!(super::world(), "world"); 10 } 11 } 12