depgraph: fmt

pull/5/head
Mitchell Hashimoto 12 years ago
parent 5d40725139
commit 87b3046d2a

@ -116,7 +116,7 @@ func (g *Graph) String() string {
" %s -> %s\n",
dep.Source,
dep.Target))
}
}
for _, n := range g.Nouns {
buf.WriteString(fmt.Sprintf("%s\n", n.Name))

@ -62,9 +62,9 @@ c -> d
c -> e`)
g := &Graph{
Name: "Test",
Name: "Test",
Nouns: NounMapToList(nodes),
Root: nodes["a"],
Root: nodes["a"],
}
actual := g.String()

Loading…
Cancel
Save