()
| 177 | |
| 178 | #[test] |
| 179 | fn locate_file() { |
| 180 | let mut d = PathBuf::from(env!("CARGO_MANIFEST_DIR")); |
| 181 | d.push("res/graph/tinyCG.txt"); |
| 182 | assert!(d.exists(), "d = {}", d.display()); |
| 183 | } |
| 184 | |
| 185 | fn create_graph(i: &str) -> Box<dyn IGraph> { |
| 186 | Box::new(Graph::from(i)) |