d2/e2etests/todo_test.go

51 lines
639 B
Go
Raw Normal View History

package e2etests
import (
_ "embed"
"testing"
)
func testTodo(t *testing.T) {
tcs := []testCase{
// https://github.com/terrastruct/d2/issues/24
// string monstrosity from not being able to escape backticks within string literals
{
2022-11-07 19:14:48 +00:00
name: "md_code_inline",
script: `md: |md
2022-11-07 23:18:16 +00:00
` + "`code`" + `
|
a -> md -> b
2022-11-07 19:14:48 +00:00
`,
},
{
name: "md_code_block_fenced",
script: `md: |md
` + "```" + `
{
fenced: "block",
of: "json",
}
` + "```" + `
|
a -> md -> b
`,
},
{
name: "md_code_block_indented",
script: `md: |md
2022-11-08 03:27:51 +00:00
a line of text and an
{
indented: "block",
of: "json",
}
2022-11-07 19:14:48 +00:00
|
a -> md -> b
`,
},
}
runa(t, tcs)
}