add assertion

This commit is contained in:
Alexander Wang 2023-02-14 16:48:16 -08:00
parent 40b4879f47
commit a81ea842cf
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -343,6 +343,10 @@ x: {
_.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",