reimplement

This commit is contained in:
Alexander Wang 2023-06-25 23:11:47 -07:00
parent 09d1ec6314
commit e1eecf7c7b
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -3011,7 +3011,7 @@ a
run func(t *testing.T)
}{
{
name: "connection",
name: "delete-connection",
run: func(t *testing.T) {
g := assertCompile(t, `
x -> y
@ -3021,6 +3021,17 @@ y: null
assert.Equal(t, 0, len(g.Edges))
},
},
{
name: "no-delete-connection",
run: func(t *testing.T) {
g := assertCompile(t, `
y: null
x -> y
`, "")
assert.Equal(t, 2, len(g.Objects))
assert.Equal(t, 1, len(g.Edges))
},
},
}
for _, tc := range tca {