Skip to content

Refactor test_sorting.py #96

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 2 commits into from
Oct 15, 2019
Merged

Conversation

Tjstretchalot
Copy link
Contributor

Refactors the unit tests to be more comprehensive and use the same suite of tests for all the sorting algorithms without copy+pasting code. This also fixes a few inconsistencies among the existing sorting algorithms to ensure tests are passing.

This verifies that sorting algorithms are either entirely inplace or
do not modify the list and return a copy. Furthermore, this standardizes
how they handle empty lists.
@OmkarPathak OmkarPathak merged commit 3f98cc9 into OmkarPathak:master Oct 15, 2019
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