diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-09-20 08:53:22 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-09-20 08:53:22 +0300 |
commit | d4d5932320292cd71ea30429c1aa93ac0389c68c (patch) | |
tree | 8cdb8d5917b9066baf81f181b43931f75449a5a2 /src | |
parent | 8ec68193b17d68ea3a13b63e1d8a0dc838f2bc8f (diff) | |
download | roadmap-d4d5932320292cd71ea30429c1aa93ac0389c68c.tar.gz |
Add: unit test for empty as_dot
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -189,4 +189,12 @@ mod tests { assert_eq!(gotit.name(), "first"); assert_eq!(gotit.label(), "the first step"); } + + #[test] + fn empty_dot() { + let roadmap = Roadmap::new(); + assert_eq!(roadmap.as_dot().unwrap(), "digraph \"roadmap\" { +} +"); + } } |