Skip to content

Comments

test/graphs/prim: writing a test case to verify the correctness of the algorithm#2454

Merged
cclauss merged 1 commit intoTheAlgorithms:masterfrom
meysam81:test/graphs/prim
Oct 15, 2020
Merged

test/graphs/prim: writing a test case to verify the correctness of the algorithm#2454
cclauss merged 1 commit intoTheAlgorithms:masterfrom
meysam81:test/graphs/prim

Conversation

@meysam81
Copy link
Contributor

And also to increase the coverage as stated in #2128

Describe your change:

  • Add an algorithm?
  • Fix a bug or typo in an existing algorithm?
  • Documentation change?

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.
  • All new algorithms have a URL in its comments that points to Wikipedia or other similar explanation.
  • If this pull request resolves one or more open issues then the commit message contains Fixes: #{$ISSUE_NO}.



if __name__ == "__main__":
if __name__ == "__main__": # pragma: no cover
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to increase coverage and ignore non-relevant coverage reports at the same time

@meysam81
Copy link
Contributor Author

@poyea
Shall we merge this or what? 🥇

@cclauss cclauss merged commit cc050db into TheAlgorithms:master Oct 15, 2020
stokhos pushed a commit to stokhos/Python that referenced this pull request Jan 3, 2021
Panquesito7 pushed a commit to Panquesito7/Python that referenced this pull request May 13, 2021
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

Successfully merging this pull request may close these issues.

2 participants