Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What tests are appropriate? #9

Open
sdmccabe opened this issue Jul 19, 2022 · 0 comments
Open

What tests are appropriate? #9

sdmccabe opened this issue Jul 19, 2022 · 0 comments

Comments

@sdmccabe
Copy link
Collaborator

In conversations, there are a few constraints that are possible to test:

  1. Enforcing return types (if you pass a DiGraph, you shouldn't get Graph back).
  2. Enforcing equal numbers of nodes and edges after rewiring.
  3. Does the algorithm handle the empty graph and the complete graph correctly?

In general, these algorithms are going to be highly nondeterministic, which presents a challenge for testing them. But ideally we can come up with some things that cover most rewirers (even if we have to have exceptions).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant