diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-09-20 08:39:53 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-09-20 08:39:53 +0300 |
commit | ea7cf4abf89d283890c89799e69e7272fd4dcaae (patch) | |
tree | d85305e81beec163b9f0aed2dd6913957451ca21 /src/lib.rs | |
parent | dce86c7df70019de891a80e5b1d752ebf0bcfb27 (diff) | |
download | roadmap-ea7cf4abf89d283890c89799e69e7272fd4dcaae.tar.gz |
Add: unit test for new roadmap
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -143,7 +143,7 @@ impl Roadmap { #[cfg(test)] mod tests { - use super::Step; + use super::{Roadmap,Step}; #[test] fn new_step() { @@ -159,4 +159,10 @@ mod tests { second.add_dependency("first"); assert_eq!(second.dependencies(), vec!["first"]); } + + #[test] + fn new_roadmap() { + let roadmap = Roadmap::new(); + assert_eq!(roadmap.step_names().len(), 0); + } } |