Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
alixander committed Apr 3, 2023
1 parent bb7adf2 commit 0586d11
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions d2ir/compile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func TestCompile(t *testing.T) {
t.Parallel()

t.Run("fields", testCompileFields)
t.Run("classes", testCompileClasses)
t.Run("edges", testCompileEdges)
t.Run("layers", testCompileLayers)
t.Run("scenarios", testCompileScenarios)
Expand Down Expand Up @@ -490,3 +491,25 @@ steps: {
}
runa(t, tca)
}

func testCompileClasses(t *testing.T) {
t.Parallel()
tca := []testCase{
{
name: "basic",
run: func(t testing.TB) {
m, err := compile(t, `x
classes: {
mango: {
style.fill: orange
}
}
`)
assert.Success(t, err)
// assertQuery(t, m, 1, 0, nil, "")
// assertQuery(t, m, 0, 0, nil, "x")
},
},
}
runa(t, tca)
}

0 comments on commit 0586d11

Please sign in to comment.