diff --git a/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.exp.json b/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.exp.json new file mode 100644 index 0000000000..c4899e323d --- /dev/null +++ b/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.exp.json @@ -0,0 +1,39 @@ +{ + "graph": null, + "err": { + "errs": [ + { + "range": "d2/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.d2,12:0:102-12:10:112", + "errmsg": "d2/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.d2:13:1: edge from constant near \"tl\" cannot enter itself" + }, + { + "range": "d2/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.d2,13:0:117-13:12:129", + "errmsg": "d2/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.d2:14:1: edge from constant near \"tl\" cannot enter itself" + }, + { + "range": "d2/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.d2,16:0:178-16:24:202", + "errmsg": "d2/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.d2:17:1: edge from grid cell \"grid.cell\" cannot enter itself" + }, + { + "range": "d2/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.d2,17:0:207-17:26:233", + "errmsg": "d2/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.d2:18:1: edge from grid cell \"grid.cell\" cannot enter itself" + }, + { + "range": "d2/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.d2,14:0:134-14:16:150", + "errmsg": "d2/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.d2:15:1: edge from grid diagram \"grid\" cannot enter itself" + }, + { + "range": "d2/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.d2,15:0:155-15:18:173", + "errmsg": "d2/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.d2:16:1: edge from grid diagram \"grid\" cannot enter itself" + }, + { + "range": "d2/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.d2,18:0:238-18:12:250", + "errmsg": "d2/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.d2:19:1: edge from sequence diagram \"seq\" cannot enter itself" + }, + { + "range": "d2/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.d2,19:0:255-19:14:269", + "errmsg": "d2/testdata/d2compiler/TestCompile/parent_graph_edge_to_descendant.d2:20:1: edge from sequence diagram \"seq\" cannot enter itself" + } + ] + } +}