add failing test

This commit is contained in:
Alexander Wang 2023-06-06 22:28:32 -07:00
parent 42cf8bed42
commit 8857f46110
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -71,6 +71,19 @@ label: meow`,
assertQuery(t, m, 0, 0, "meow", "x")
},
},
{
name: "boards",
run: func(t testing.TB) {
m, err := compileFS(t, "index.d2", map[string]string{
"index.d2": `x.link: layers.x; layers: { x: @x }`,
"x.d2": `y.link: layers.y; layers: { y: @y }`,
"y.d2": `meow`,
})
assert.Success(t, err)
assertQuery(t, m, 0, 0, "root.layers.x", "x.link")
assertQuery(t, m, 0, 0, "root.layers.x.layers.y", "layers.x.y.link")
},
},
{
name: "spread",
run: func(t testing.TB) {