fix compiler test
This commit is contained in:
parent
6a5c1e6d4b
commit
6213150433
2 changed files with 12 additions and 6 deletions
|
|
@ -1561,7 +1561,10 @@ dst.id <-> src.dst_id
|
||||||
text: `x -> x
|
text: `x -> x
|
||||||
`,
|
`,
|
||||||
assertions: func(t *testing.T, g *d2graph.Graph) {
|
assertions: func(t *testing.T, g *d2graph.Graph) {
|
||||||
diff.AssertStringEq(t, g.Edges[0].Dst.ID, g.Edges[0].Src.ID)
|
_, err := diff.Strings(g.Edges[0].Dst.ID, g.Edges[0].Src.ID)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
13
testdata/d2compiler/TestCompile/self-referencing.exp.json
generated
vendored
13
testdata/d2compiler/TestCompile/self-referencing.exp.json
generated
vendored
|
|
@ -68,9 +68,10 @@
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
"direction": {
|
"direction": {
|
||||||
"value": "down"
|
"value": ""
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"zIndex": 0
|
||||||
},
|
},
|
||||||
"edges": [
|
"edges": [
|
||||||
{
|
{
|
||||||
|
|
@ -101,7 +102,8 @@
|
||||||
"direction": {
|
"direction": {
|
||||||
"value": ""
|
"value": ""
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"zIndex": 0
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"objects": [
|
"objects": [
|
||||||
|
|
@ -164,9 +166,10 @@
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
"direction": {
|
"direction": {
|
||||||
"value": "down"
|
"value": ""
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"zIndex": 0
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue