code-shoily / algorithms-in-dart

Implementation of data structures and algorithms in Dart programming language.
223 stars 77 forks source link

Refactor Vertex Tests #31

Closed code-shoily closed 3 years ago

code-shoily commented 3 years ago

The test/graph/vertex_test.dart has variables bleeding throughout the codebase. We need to clean those up in spirit of other files. We should extract all local var declarations in the top level and lock/unlock them on setUp. Also, we can add lockAll, unlockAll, _initializeVertex etc functions to keep setUp uncluttered. We can test/graph/graph_test.dart for inspiration.