...
1 package e2etests
2
3 import (
4 _ "embed"
5 "testing"
6
7 "oss.terrastruct.com/d2/d2target"
8 )
9
10
11 func testMeasured(t *testing.T) {
12 tcs := []testCase{
13 {
14 name: "empty-shape",
15 mtexts: []*d2target.MText{},
16 script: `a: ""
17 `,
18 },
19 {
20 name: "empty-class",
21 mtexts: []*d2target.MText{},
22 script: `a: "" { shape: class }
23 `,
24 },
25 {
26 name: "empty-sql_table",
27 mtexts: []*d2target.MText{},
28 script: `a: "" { shape: sql_table }
29 `,
30 },
31 }
32
33 runa(t, tcs)
34 }
35
View as plain text