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