Created
August 15, 2023 17:35
-
-
Save YonatanKra/ac1ffa1782be979499f22f6656f416cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[cfg(test)] | |
mod tests { | |
use super::*; | |
#[test] | |
fn test_greet() { | |
assert_eq!(greet("Johnny"), "Hello, Johnny! You've been greeted from Rust!"); | |
} | |
#[test] | |
fn test_greet_badly() { | |
assert_eq!(greet("Johnny"), "Hello, Bonny! You've been greeted from Rust!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment