save test

This commit is contained in:
Gavin Nishizawa 2023-09-18 14:03:32 -07:00
parent 75ad59838b
commit 095e23ddad
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD
2 changed files with 27 additions and 2 deletions

View file

@ -2732,8 +2732,10 @@ g: |md
|
`,
expErr: `
`,
expErr: `d2/testdata/d2compiler/TestCompile/text_no_label.d2:14:1: block string cannot be empty
d2/testdata/d2compiler/TestCompile/text_no_label.d2:15:1: block string cannot be empty
d2/testdata/d2compiler/TestCompile/text_no_label.d2:4:1: shape text must have a non-empty label
d2/testdata/d2compiler/TestCompile/text_no_label.d2:7:1: shape text must have a non-empty label`,
},
}

23
testdata/d2compiler/TestCompile/text_no_label.exp.json generated vendored Normal file
View file

@ -0,0 +1,23 @@
{
"graph": null,
"err": {
"errs": [
{
"range": "d2/testdata/d2compiler/TestCompile/text_no_label.d2,13:0:110-13:9:119",
"errmsg": "d2/testdata/d2compiler/TestCompile/text_no_label.d2:14:1: block string cannot be empty"
},
{
"range": "d2/testdata/d2compiler/TestCompile/text_no_label.d2,14:0:120-16:1:129",
"errmsg": "d2/testdata/d2compiler/TestCompile/text_no_label.d2:15:1: block string cannot be empty"
},
{
"range": "d2/testdata/d2compiler/TestCompile/text_no_label.d2,3:0:25-5:1:51",
"errmsg": "d2/testdata/d2compiler/TestCompile/text_no_label.d2:4:1: shape text must have a non-empty label"
},
{
"range": "d2/testdata/d2compiler/TestCompile/text_no_label.d2,6:0:52-8:1:74",
"errmsg": "d2/testdata/d2compiler/TestCompile/text_no_label.d2:7:1: shape text must have a non-empty label"
}
]
}
}