d2compiler: Integrate d2ir (wip)

This commit is contained in:
Anmol Sethi 2023-01-21 23:49:07 -08:00
parent bd7b5c3fc0
commit 6543bf217a
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA
2 changed files with 325 additions and 635 deletions

File diff suppressed because it is too large Load diff

View file

@ -1946,8 +1946,8 @@ layers: {
}
`, "")
assert.JSON(t, 2, len(g.Layers))
assert.JSON(t, "one", g.Layers[0].Root.ID)
assert.JSON(t, "two", g.Layers[1].Root.ID)
assert.JSON(t, "one", g.Layers[0].Name)
assert.JSON(t, "two", g.Layers[1].Name)
},
},
}