summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorseancarroll <seanc28@gmail.com>2021-01-09 22:44:40 -0600
committerseancarroll <seanc28@gmail.com>2021-01-09 22:44:40 -0600
commitc3a01f5353013b82ec3048969f48e1f229a88c48 (patch)
tree629b641cdb202c7b0bf372ad688bde8da520d0b2 /tests
parent16bf6f3f1a132c61e40a0137d69c1b53bbf7bd59 (diff)
downloaddotavious-c3a01f5353013b82ec3048969f48e1f229a88c48.zip
cargo fmt
Diffstat (limited to 'tests')
-rw-r--r--tests/dot.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/dot.rs b/tests/dot.rs
index 1ab467d..efafac8 100644
--- a/tests/dot.rs
+++ b/tests/dot.rs
@@ -1,4 +1,7 @@
-use dotavious::attributes::{AttributeText, CompassPoint, GraphAttributeStatementBuilder, GraphAttributes, NodeStyle, PortPosition, RankDir, Shape, EdgeStyle, Color};
+use dotavious::attributes::{
+ AttributeText, Color, CompassPoint, EdgeStyle, GraphAttributeStatementBuilder,
+ GraphAttributes, NodeStyle, PortPosition, RankDir, Shape,
+};
use dotavious::{
Dot, Edge, EdgeAttributeStatementBuilder, EdgeAttributes, EdgeBuilder, Graph,
GraphBuilder, Node, NodeAttributeStatementBuilder, NodeAttributes, NodeBuilder,
@@ -7,7 +10,7 @@ use std::io;
use std::io::Read;
fn test_input(g: Graph) -> io::Result<String> {
- let mut writer= Vec::new();
+ let mut writer = Vec::new();
let dot = Dot { graph: g };
dot.render(&mut writer).unwrap();
@@ -33,6 +36,7 @@ fn empty_digraph_without_id() {
fn display() {
let g = GraphBuilder::new_directed(None).build();
let dot = Dot { graph: g };
+
assert_eq!(
format!("{}", dot),
r#"digraph {