test_add_w 0.1.0

This is test crate for publish crate
Documentation
//! # My crate
//! This is a test create for publish create.
//!
//! Don't use.

/// Adds one to the number given
/// # Example
/// ```
/// let arg =5;
/// let answer = test_add_w::add(arg,1);
/// assert_eq!(6, answer);;
/// ````
pub fn add(left: usize, right: usize) -> usize {
    left + right
}

pub use self::kinds::PrimaryColor;

pub mod kinds {
    /// The primary colors according to the RYB color model.
    pub enum PrimaryColor {
        Red,
        Yellow,
        Blue,
    }

    /// The secondary colors according to the RYB color model.
    pub enum SecondaryColor {
        Orange,
        Green,
        Purple,
    }
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn it_works() {
        let result = add(2, 2);
        assert_eq!(result, 4);
    }
}