Documentation
//! `ch14`
//!  is a simple example for num  increate 
//! 

/// 数字自增
/// 
/// # Example
/// ```rust
/// use ch14::add_one;
/// let a:i32=10;
/// let answer=ch14::add_one(a);
///  assert_eq!(11, answer);
/// ```
///

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

#[cfg(test)]
mod tests{
    use super::*;
    #[test]
    pub fn add_test(){
        let a=10;
        let ret=add_one(a);
        assert_eq!(ret,11);
    }
}

// Art
pub mod kind{
    /// 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,
    }
}

pub mod utils {
    use crate::kind::*;

    /// Combines two primary colors in equal amounts to create
    /// a secondary color.
    pub fn mix(c1: PrimaryColor, c2: PrimaryColor) -> SecondaryColor {
        // --snip--
        SecondaryColor::Orange
    }
}