1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use crimson_utils::plus_one; pub fn plus_two(x:i32) ->i32 { plus_one(plus_one(x)) } #[cfg(test)] mod tests { use super::*; #[test] fn it_works() { assert_eq!(plus_two(3), 5); } }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use crimson_utils::plus_one; pub fn plus_two(x:i32) ->i32 { plus_one(plus_one(x)) } #[cfg(test)] mod tests { use super::*; #[test] fn it_works() { assert_eq!(plus_two(3), 5); } }