This repository has been archived by the owner on Apr 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor unit tests and helper methods
- Refactors the helper functions for bidirectionalizing and reversing graphs, so that they do not mutate the input graphs but rather return new graphs. (Mutating function arguments is a bad smell in general, and should be avoided when not necessary.) - Create a new helper base test class with assertions for graph isomorphism and that a graph is isomorphic to a provided iterator of edges. - Write more extensive tests for the bidirectional and reverse functions. Test plan: `python3 infra/graph_generators_test.py`
- Loading branch information
1 parent
bbdd973
commit 22aed74
Showing
2 changed files
with
131 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters