put tests fn in here

This commit is contained in:
René Fuhry 2023-05-31 12:45:45 +02:00 committed by GitHub
parent 95d6a18c16
commit 83c80f9b27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,13 @@
pub mod graph;
fn main() {
graph::tests("graph");
pub fn main() {
tests("graph")
}
pub fn tests(arg: &str) {
match arg {
"graph" => graph::test(),
"matrix" => graph::matrix::test(),
&_ => println!("{arg} is not a valid option"),
}
}