1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
//! Coming soon: `clipper`: a cross-platform binary and Rust crate for piping to the system //! clipboard /// adds two integers /// ## Example: /// ``` /// use clipper::add; // FIXME /// /// assert_eq!(add(1,1), 2); /// ``` /// This is a doctest pub fn add(a: i32, b: i32) -> i32 { a + b } #[cfg(test)] mod tests { use super::*; #[test] fn adder_unit_test() { assert_eq!(add(2, 2), 4); } }