Adding tests to test mod
This commit is contained in:
@@ -8,6 +8,9 @@ pub fn handify(input: &str) -> String {
|
||||
input
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
#[test]
|
||||
fn handify_test_no_trailing_spaces() {
|
||||
let input = "hello world";
|
||||
@@ -25,3 +28,4 @@ fn handify_test_empty_string() {
|
||||
let input = "";
|
||||
assert_eq!(handify(input), "");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user