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

Refactor: use table driven tests #255

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

frednesto
Copy link
Contributor

Here's an example of table driven tests which simplifies the code a lot and make it easier to add new test cases.
https://dave.cheney.net/2019/05/07/prefer-table-driven-tests
I suggest to use this pattern as much as possible.

@frednesto
Copy link
Contributor Author

@lorenzodonini what do you think?

@lorenzodonini
Copy link
Owner

Makes perfect sense for this case 👍

@lorenzodonini lorenzodonini merged commit 2000d27 into lorenzodonini:master Mar 15, 2024
1 check passed
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