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
//! # Testing crate deployment
//!
//! `hello_s2tarky` is testing crate deployment

pub mod utils {
    /// create "Hello World!" &str
    ///
    /// # Example
    /// 
    /// ```
    /// let hello_world = hello_s2tarky::utils::hello_world();
    ///
    /// assert_eq!(hello_world, "Hello World!");
    /// ```
    pub fn hello_world() -> &'static str {
        "Hello World!"
    }
}

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

    #[test]
    fn it_works() {
        assert_eq!(hello_world(), "Hello World!");
    }
}