summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-09-20 08:39:53 +0300
committerLars Wirzenius <liw@liw.fi>2019-09-20 08:39:53 +0300
commitea7cf4abf89d283890c89799e69e7272fd4dcaae (patch)
treed85305e81beec163b9f0aed2dd6913957451ca21 /src
parentdce86c7df70019de891a80e5b1d752ebf0bcfb27 (diff)
downloadroadmap-ea7cf4abf89d283890c89799e69e7272fd4dcaae.tar.gz
Add: unit test for new roadmap
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 328b7e0..aa1d1eb 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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);
+ }
}