diff --git a/src/maze/algorithms/prim.rs b/src/maze/algorithms/prim.rs index 6c7654a..5a47a2b 100644 --- a/src/maze/algorithms/prim.rs +++ b/src/maze/algorithms/prim.rs @@ -145,3 +145,15 @@ fn direction(x: usize, y: usize, nx: usize, ny: usize) -> Option { unreachable!("The x and y coordinates are never equal to nx and ny") } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn default_call() { + let algo = Prim::default(); + let v: Vec = vec![]; + assert_eq!(v, algo.frontiers); + } +}