update tests
This commit is contained in:
parent
b6a7986626
commit
a1c753a413
2 changed files with 5 additions and 5 deletions
|
|
@ -723,7 +723,7 @@ eee.shape: document
|
|||
eee <- aaa.ccc
|
||||
(eee <- aaa.ccc)[0]: '222'
|
||||
`,
|
||||
dagreFeatureError: `Connection "(aaa.ccc -- aaa)[0]" goes from a container to a descendant, but layout engine "dagre" does not support this.`,
|
||||
dagreFeatureError: `Connection "(aaa.ccc -- aaa)[0]" goes from a container to a descendant, but layout engine "dagre" does not support this. See https://d2lang.com/tour/layouts/#layout-specific-functionality for more.`,
|
||||
},
|
||||
{
|
||||
name: "chaos2",
|
||||
|
|
@ -2133,7 +2133,7 @@ c: {
|
|||
a
|
||||
}
|
||||
`,
|
||||
dagreFeatureError: `Object "a" has attribute "width" and/or "height" set, but layout engine "dagre" does not support dimensions set on containers.`,
|
||||
dagreFeatureError: `Object "a" has attribute "width" and/or "height" set, but layout engine "dagre" does not support dimensions set on containers. See https://d2lang.com/tour/layouts/#layout-specific-functionality for more.`,
|
||||
},
|
||||
{
|
||||
name: "crow_foot_arrowhead",
|
||||
|
|
|
|||
|
|
@ -14,14 +14,14 @@ func testTodo(t *testing.T) {
|
|||
container.first -> container.second: 1->2
|
||||
container -> container.second: c->2
|
||||
`,
|
||||
dagreFeatureError: `Connection "(container -> container.second)[0]" goes from a container to a descendant, but layout engine "dagre" does not support this.`,
|
||||
dagreFeatureError: `Connection "(container -> container.second)[0]" goes from a container to a descendant, but layout engine "dagre" does not support this. See https://d2lang.com/tour/layouts/#layout-specific-functionality for more.`,
|
||||
},
|
||||
{
|
||||
name: "child_parent_edges",
|
||||
script: `a.b -> a
|
||||
a.b -> a.b.c
|
||||
a.b.c.d -> a.b`,
|
||||
dagreFeatureError: `Connection "(a.b -> a)[0]" goes from a container to a descendant, but layout engine "dagre" does not support this.`,
|
||||
dagreFeatureError: `Connection "(a.b -> a)[0]" goes from a container to a descendant, but layout engine "dagre" does not support this. See https://d2lang.com/tour/layouts/#layout-specific-functionality for more.`,
|
||||
},
|
||||
{
|
||||
name: "container_label_loop",
|
||||
|
|
@ -29,7 +29,7 @@ a.b.c.d -> a.b`,
|
|||
b -> c
|
||||
}
|
||||
a -> a`,
|
||||
dagreFeatureError: `Connection "(a -> a)[0]" is a self loop on a container, but layout engine "dagre" does not support this.`,
|
||||
dagreFeatureError: `Connection "(a -> a)[0]" is a self loop on a container, but layout engine "dagre" does not support this. See https://d2lang.com/tour/layouts/#layout-specific-functionality for more.`,
|
||||
},
|
||||
{
|
||||
// as nesting gets deeper, the groups advance towards `c` and may overlap its lifeline
|
||||
|
|
|
|||
Loading…
Reference in a new issue