mattrasto / phase

Network visualization framework for complex systems and simulations
MIT License
9 stars 1 forks source link

Add tests for subgroup construction/destruction #98

Closed mattrasto closed 5 years ago

mattrasto commented 5 years ago

We should write tests to ensure the proper maintenance of parent/child relationships in the following scenarios:

  1. Subgroup creation (child's parent property is properly initialized and parent's children property contains child)
  2. Parent destruction (children's parent property is set to null)
  3. Child destruction (parent's children property does not contain reference to child)
mattrasto commented 5 years ago

Implemented in #96