1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//! # My crate
//! My crate is cool!

///Adds one to given number.
/// # Examples
/// ```
/// let arg = 1;
/// let answer = the_2crabscargo_testing::add_one(arg);
///
/// assert_eq!(2, answer);
/// ```


pub fn add_one(a: i32) -> i32{
    a + 1
}

pub enum test_enum{
    thing,
    nothing
}
#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {
        assert_eq!(2 + 2, 4);
    }
}