summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-09-20 08:53:22 +0300
committerLars Wirzenius <liw@liw.fi>2019-09-20 08:53:22 +0300
commitd4d5932320292cd71ea30429c1aa93ac0389c68c (patch)
tree8cdb8d5917b9066baf81f181b43931f75449a5a2 /src
parent8ec68193b17d68ea3a13b63e1d8a0dc838f2bc8f (diff)
downloadroadmap-d4d5932320292cd71ea30429c1aa93ac0389c68c.tar.gz
Add: unit test for empty as_dot
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 5549694..ef63932 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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\" {
+}
+");
+ }
}