hicsail / constellation-js

Library for combinatorially specifying, constraining, and exploring genetic design spaces.
http://constellationcad.org
MIT License
10 stars 8 forks source link

designEnumeration doesn't work with zero-or-more #37

Closed gxavier38 closed 6 years ago

gxavier38 commented 6 years ago

Doesn't occur when node isn't in categories since it throws an error before path[1] is accessed.

gxavier38 commented 6 years ago

There's a check for empty paths, but it checks that the path length is 0. Empty paths actually have length 1 since it includes the root node.