2022-11-03 13:54:49 +00:00
|
|
|
package e2etests
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"testing"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func testRegression(t *testing.T) {
|
2022-12-05 19:10:45 +00:00
|
|
|
tcs := []testCase{
|
|
|
|
|
{
|
2022-12-06 21:44:59 +00:00
|
|
|
name: "dagre_special_ids",
|
2022-12-05 19:40:21 +00:00
|
|
|
script: `
|
|
|
|
|
ninety\nnine
|
|
|
|
|
eighty\reight
|
|
|
|
|
seventy\r\nseven
|
2022-12-06 21:44:59 +00:00
|
|
|
a\\yode -> there
|
|
|
|
|
a\\"ode -> there
|
|
|
|
|
a\\node -> there
|
2022-12-05 22:51:01 +00:00
|
|
|
`,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "empty_sequence",
|
|
|
|
|
script: `
|
|
|
|
|
A: hello {
|
|
|
|
|
shape: sequence_diagram
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
B: goodbye {
|
|
|
|
|
shape: sequence_diagram
|
|
|
|
|
}
|
|
|
|
|
|
2022-12-06 22:19:17 +00:00
|
|
|
A->B`,
|
|
|
|
|
}, {
|
|
|
|
|
name: "sequence_diagram_span_cover",
|
|
|
|
|
script: `shape: sequence_diagram
|
|
|
|
|
b.1 -> b.1
|
|
|
|
|
b.1 -> b.1`,
|
2022-12-12 00:28:30 +00:00
|
|
|
}, {
|
|
|
|
|
name: "sequence_diagram_no_message",
|
|
|
|
|
script: `shape: sequence_diagram
|
|
|
|
|
a: A
|
|
|
|
|
b: B`,
|
2022-12-05 19:10:45 +00:00
|
|
|
},
|
2022-12-19 04:03:07 +00:00
|
|
|
{
|
|
|
|
|
name: "sequence_diagram_name_crash",
|
|
|
|
|
script: `foo: {
|
|
|
|
|
shape: sequence_diagram
|
|
|
|
|
a -> b
|
|
|
|
|
}
|
|
|
|
|
foobar: {
|
|
|
|
|
shape: sequence_diagram
|
|
|
|
|
c -> d
|
|
|
|
|
}
|
|
|
|
|
foo -> foobar`,
|
|
|
|
|
},
|
2022-12-05 19:10:45 +00:00
|
|
|
}
|
2022-11-03 13:54:49 +00:00
|
|
|
|
|
|
|
|
runa(t, tcs)
|
|
|
|
|
}
|