pub fn add_one(s: &str) -> String { s.parse::().map(|n| (n + 1).to_string()).unwrap() } fn main() {} #[cfg(test)] mod tests { #[test] fn add_one() { // The path here is always relative from the crate root. trycall::trycall!("examples/add_one/tests").with(super::add_one); } }