Skip to main content

open_engineering_hello/
lib.rs

1//! A minimal Open Engineering example crate.
2
3/// Returns the canonical Open Engineering greeting.
4///
5/// # Examples
6///
7/// ```
8/// let message = open_engineering_hello::hello();
9/// assert_eq!(message, "Hello, Open Engineering!");
10/// ```
11pub fn hello() -> &'static str {
12    "Hello, Open Engineering!"
13}
14
15#[cfg(test)]
16mod tests {
17    use super::*;
18
19    #[test]
20    fn says_hello() {
21        assert_eq!(hello(), "Hello, Open Engineering!");
22    }
23}