diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-09-20 08:38:03 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-09-20 08:38:03 +0300 |
commit | dce86c7df70019de891a80e5b1d752ebf0bcfb27 (patch) | |
tree | ef3e6c548745e72af333717e4783897eff50d4cf /src/lib.rs | |
parent | 96bf7e565b2a21b86350164f854bbc9bb41f39ab (diff) | |
download | roadmap-dce86c7df70019de891a80e5b1d752ebf0bcfb27.tar.gz |
Add: unit test for adding dep
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -154,9 +154,9 @@ mod tests { } #[test] - fn new_step_has_() { - let step = Step::new("myname", "my label"); - assert_eq!(step.name(), "myname"); - assert_eq!(step.label(), "my label"); + fn add_step_dependency() { + let mut second = Step::new("second", "the second step"); + second.add_dependency("first"); + assert_eq!(second.dependencies(), vec!["first"]); } } |