Skip to content

Commit

Permalink
improve visualize tests
Browse files Browse the repository at this point in the history
  • Loading branch information
greeflas committed Jan 22, 2024
1 parent 45369ac commit ab1fccb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions visualize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ func assertCtorEqual(t *testing.T, expected *dot.Ctor, ctor *dot.Ctor) {
}

func assertCtorsEqual(t *testing.T, expected []*dot.Ctor, ctors []*dot.Ctor) {
assert.Len(t, ctors, len(expected))

for i, c := range ctors {
assertCtorEqual(t, expected[i], c)
}
Expand Down

0 comments on commit ab1fccb

Please sign in to comment.