d2/e2etests/todo_test.go

47 lines
641 B
Go
Raw Normal View History

package e2etests
import (
_ "embed"
"testing"
)
func testTodo(t *testing.T) {
2022-11-11 23:41:24 +00:00
tcs := []testCase{
{
// issue https://github.com/terrastruct/d2/issues/71
name: "container_child_edge",
script: `
container.first -> container.second: 1->2
container -> container.second: c->2
2022-11-27 07:19:16 +00:00
`,
},
{
name: "latex",
2022-11-27 18:11:14 +00:00
script: `a: |latex
2022-11-28 03:51:12 +00:00
\\Huge{\\frac{\\alpha g^2}{\\omega^5} e^{[ -0.74\\bigl\\{\\frac{\\omega U_\\omega 19.5}{g}\\bigr\\}^{\\!-4}\\,]}}
2022-11-27 07:19:16 +00:00
|
2022-11-27 18:11:14 +00:00
b: |latex
e = mc^2
|
2022-11-27 21:54:41 +00:00
z: |latex
gibberish\\; math:\\sum_{i=0}^\\infty i^2
2022-11-27 18:15:12 +00:00
|
2022-11-27 21:54:41 +00:00
z -> a
z -> b
2022-11-27 18:11:14 +00:00
a -> c
b -> c
sugar -> c
c: mixed together
c -> solution: we get
2022-11-11 23:41:24 +00:00
`,
},
}
runa(t, tcs)
}