add assertion
This commit is contained in:
parent
40b4879f47
commit
a81ea842cf
1 changed files with 4 additions and 0 deletions
|
|
@ -343,6 +343,10 @@ x: {
|
||||||
_.c.d -> _.c.b
|
_.c.d -> _.c.b
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
|
assertions: func(t *testing.T, g *d2graph.Graph) {
|
||||||
|
tassert.Equal(t, 3, len(g.Objects))
|
||||||
|
tassert.Equal(t, 1, len(g.Edges))
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "underscore_parent_not_root",
|
name: "underscore_parent_not_root",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue