diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-09-24 09:58:09 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-09-24 09:58:09 +0300 |
commit | 1ce93cd3b8fccbfc348db31b04834f783ec581f0 (patch) | |
tree | 0c66884bac466265cc0fac6d7c2f534ada513e83 /src/lib.rs | |
parent | 3635c241275cbacc6c11073c7c205abc8ada8a26 (diff) | |
download | roadmap-1ce93cd3b8fccbfc348db31b04834f783ec581f0.tar.gz |
Fix: unit test to match current behaviour
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -306,16 +306,18 @@ mod tests { #[test] fn simple_dot() { let mut roadmap = Roadmap::new(); - let first = Step::new("first", ""); + let mut first = Step::new("first", ""); + first.set_status("ready"); let mut second = Step::new("second", ""); second.add_dependency("first"); + second.set_status("goal"); roadmap.add_step(&first).unwrap(); roadmap.add_step(&second).unwrap(); assert_eq!( roadmap.as_dot(999).unwrap(), "digraph \"roadmap\" { -first [label=\"\" fillcolor=\"#ffffff\" shape=\"ellipse\"]; -second [label=\"\" fillcolor=\"#00eeeeee\" shape=\"diamond\"]; +first [label=\"\" style=filled fillcolor=\"#ffffff\" shape=\"ellipse\"]; +second [label=\"\" style=filled fillcolor=\"#00eeee\" shape=\"diamond\"]; first -> second; } " |