fix: delete redundant testcases
This commit is contained in:
parent
5820ba5889
commit
597385e19c
3 changed files with 0 additions and 44 deletions
|
|
@ -1524,26 +1524,6 @@ d2/testdata/d2compiler/TestCompile/near-invalid.d2:14:9: near keys cannot be set
|
||||||
`,
|
`,
|
||||||
expErr: `d2/testdata/d2compiler/TestCompile/near_bad_constant.d2:1:9: near key "txop-center" must be the absolute path to a shape or one of the following constants: top-left, top-center, top-right, center-left, center-right, bottom-left, bottom-center, bottom-right`,
|
expErr: `d2/testdata/d2compiler/TestCompile/near_bad_constant.d2:1:9: near key "txop-center" must be the absolute path to a shape or one of the following constants: top-left, top-center, top-right, center-left, center-right, bottom-left, bottom-center, bottom-right`,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "near_bad_container",
|
|
||||||
|
|
||||||
text: `x: {
|
|
||||||
near: top-center
|
|
||||||
y
|
|
||||||
}
|
|
||||||
`,
|
|
||||||
expErr: `d2/testdata/d2compiler/TestCompile/near_bad_container.d2:2:9: constant near keys cannot be set on shapes with children`,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "near_bad_connected",
|
|
||||||
|
|
||||||
text: `x: {
|
|
||||||
near: top-center
|
|
||||||
}
|
|
||||||
x -> y
|
|
||||||
`,
|
|
||||||
expErr: `d2/testdata/d2compiler/TestCompile/near_bad_connected.d2:2:9: constant near keys cannot be set on connected shapes`,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "nested_near_constant",
|
name: "nested_near_constant",
|
||||||
|
|
||||||
|
|
|
||||||
12
testdata/d2compiler/TestCompile/near_bad_connected.exp.json
generated
vendored
12
testdata/d2compiler/TestCompile/near_bad_connected.exp.json
generated
vendored
|
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"graph": null,
|
|
||||||
"err": {
|
|
||||||
"ioerr": null,
|
|
||||||
"errs": [
|
|
||||||
{
|
|
||||||
"range": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2,1:8:13-1:18:23",
|
|
||||||
"errmsg": "d2/testdata/d2compiler/TestCompile/near_bad_connected.d2:2:9: constant near keys cannot be set on connected shapes"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
12
testdata/d2compiler/TestCompile/near_bad_container.exp.json
generated
vendored
12
testdata/d2compiler/TestCompile/near_bad_container.exp.json
generated
vendored
|
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"graph": null,
|
|
||||||
"err": {
|
|
||||||
"ioerr": null,
|
|
||||||
"errs": [
|
|
||||||
{
|
|
||||||
"range": "d2/testdata/d2compiler/TestCompile/near_bad_container.d2,1:8:13-1:18:23",
|
|
||||||
"errmsg": "d2/testdata/d2compiler/TestCompile/near_bad_container.d2:2:9: constant near keys cannot be set on shapes with children"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue