put tests fn in here
This commit is contained in:
parent
95d6a18c16
commit
83c80f9b27
12
src/main.rs
12
src/main.rs
@ -1,5 +1,13 @@
|
|||||||
pub mod graph;
|
pub mod graph;
|
||||||
|
|
||||||
fn main() {
|
pub fn main() {
|
||||||
graph::tests("graph");
|
tests("graph")
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn tests(arg: &str) {
|
||||||
|
match arg {
|
||||||
|
"graph" => graph::test(),
|
||||||
|
"matrix" => graph::matrix::test(),
|
||||||
|
&_ => println!("{arg} is not a valid option"),
|
||||||
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user