This commit is contained in:
Bernard Xie 2023-06-01 18:48:37 -07:00
parent 7d05c39593
commit 1a6b1a4084
No known key found for this signature in database
GPG key ID: 3C3E0036CE0F892C
2 changed files with 17 additions and 0 deletions

View file

@ -610,6 +610,11 @@ x: {
expErr: `d2/testdata/d2compiler/TestCompile/md_block_string_err.d2:4:19: unexpected text after md block string. See https://d2lang.com/tour/text#advanced-block-strings.
d2/testdata/d2compiler/TestCompile/md_block_string_err.d2:5:1: block string must be terminated with |`,
},
{
name: "no_empty_block_strings",
text: `Text: |md |`,
expErr: `d2/testdata/d2compiler/TestCompile/no_empty_block_strings.d2:1:1: block string cannot be empty`,
},
{
name: "underscore_edge_existing",

View file

@ -0,0 +1,12 @@
{
"graph": null,
"err": {
"ioerr": null,
"errs": [
{
"range": "d2/testdata/d2compiler/TestCompile/no_empty_block_strings.d2,0:0:0-0:11:11",
"errmsg": "d2/testdata/d2compiler/TestCompile/no_empty_block_strings.d2:1:1: block string cannot be empty"
}
]
}
}