Add tests #5
@@ -166,3 +166,16 @@ impl NumberParser {
|
|||||||
parsed
|
parsed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mod tests {
|
||||||
|
#[test]
|
||||||
|
fn test_file_dump() {
|
||||||
|
let filename = String::from("tests/numbers-0.txt");
|
||||||
|
let file_exists = {
|
||||||
|
let path = std::path::Path::new(filename.as_str());
|
||||||
|
path.exists()
|
||||||
|
};
|
||||||
|
|
||||||
|
assert_eq!(true, file_exists, "File does not exists {filename:?}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user