Skip to content

Add doctests for sorting algorithms #1263

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

Merged
merged 4 commits into from
Oct 3, 2019

Conversation

parth-paradkar
Copy link
Contributor

Doctests in the following files to be added: pigoen_sort.py, pancake_sort.py

For doctests run following command:
python -m doctest -v pancake_sort.py
or
python3 -m doctest -v pancake_sort.py
Copy link
Member

Choose a reason for hiding this comment

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

Please reverse the order to encourage users to try python3 first.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, sure.

Copy link
Member

@cclauss cclauss left a comment

Choose a reason for hiding this comment

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

Awesome work here! Thanks for adding tests.

@cclauss cclauss merged commit 390feb0 into TheAlgorithms:master Oct 3, 2019
@parth-paradkar parth-paradkar deleted the sort-doctest branch October 3, 2019 08:25
stokhos pushed a commit to stokhos/Python that referenced this pull request Jan 3, 2021
* doctests and intro docstring added

* doctests, docstrings and check for empty collection added

* Intro docstring added

* python versions reversed
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