Added test
Rust Build / Check (pull_request) Successful in 27s
Rust Build / Test Suite (pull_request) Successful in 28s
Rust Build / Clippy (pull_request) Successful in 49s
Rust Build / Rustfmt (pull_request) Successful in 29s
Rust Build / build (pull_request) Successful in 26s
Rust Build / Check (pull_request) Successful in 27s
Rust Build / Test Suite (pull_request) Successful in 28s
Rust Build / Clippy (pull_request) Successful in 49s
Rust Build / Rustfmt (pull_request) Successful in 29s
Rust Build / build (pull_request) Successful in 26s
This commit is contained in:
@@ -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