d2/e2etests/todo_test.go

48 lines
692 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
\\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 18:15:12 +00:00
complex: |latex
f(x) = \\begin{dcases*}
x & when $x$ is even\\\
-x & when $x$ is odd
\\end{dcases*}
|
complex -> c
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)
}