parth10606_first_crate 0.1.1

A test lib for publishing
Documentation
/// Adds two 32-bit signed integers.
///
/// # Arguments
///
/// * `a` - The first integer.
/// * `b` - The second integer.
///
/// # Returns
///
/// * The sum of `a` and `b`.
///
/// # Examples
///
/// ```
/// use parth10606_first_crate::utils::math;
/// 
/// let result = math::add(3, 5);
/// assert_eq!(result, 8);
/// ```
pub fn add(a:i32,b:i32)->i32{
    return a+b;
}

#[cfg(test)]
mod test{
    use super::*;
    #[test]
    fn test_add(){
        assert_eq!(add(2,3),5);
        
    }
}