add failing test
This commit is contained in:
parent
42cf8bed42
commit
8857f46110
1 changed files with 13 additions and 0 deletions
|
|
@ -71,6 +71,19 @@ label: meow`,
|
||||||
assertQuery(t, m, 0, 0, "meow", "x")
|
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",
|
name: "spread",
|
||||||
run: func(t testing.TB) {
|
run: func(t testing.TB) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue