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

feat: add sorting_tests macro to almost all sorting algorithms #48

Merged
merged 2 commits into from Dec 15, 2022

Conversation

aliencdh
Copy link
Contributor

There were a few algorithms I wasn't able to do this for, because the function signatures didn't match those expected by the macro. Perhaps it'd be a good idea to standardize those too?

@alexfertel
Copy link
Owner

There were a few algorithms I wasn't able to do this for, because the function signatures didn't match those expected by the macro. Perhaps it'd be a good idea to standardize those too?

Yes, that was my first thought. In the end they are all sorting algos, so it probably makes sense to just create some sort of abstraction over the algorithms and call a .sort. I'm fine with adding something that couples the algos a bit since that abstraction would be educational as well. Similar to how search problems (bfs, dfs, A*, etc) can be abstracted as well.

I'm happy to review those changes in separate PRs!

alexfertel
alexfertel previously approved these changes Dec 15, 2022
Copy link
Owner

@alexfertel alexfertel left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for your contribution! ❤️

@alexfertel
Copy link
Owner

Ah, there is a small formatting issue! @aliencdh would you mind fixing those so that I can merge this PR?

@aliencdh
Copy link
Contributor Author

@alexfertel ofc, i’ll format them now

Copy link
Owner

@alexfertel alexfertel left a comment

Choose a reason for hiding this comment

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

LGTM!

@alexfertel alexfertel changed the title Add sorting_tests macro to most sorting algorithms feat: add sorting_tests macro to almost all sorting algorithms Dec 15, 2022
@alexfertel alexfertel merged commit 5729838 into alexfertel:main Dec 15, 2022
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.

None yet

2 participants