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 table-driven test that was doing too much. #379

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

sengi
Copy link
Contributor

@sengi sengi commented Jul 28, 2023

This table-driven test was full of branches and was testing a whole bunch of different behaviours.

  • Split it into separate tests that test one thing each.
  • Stop doing exact comparisons on floating point numbers.
  • Clean up the other few tests in the module.
  • Use table-driven tests where appropriate.

@sengi sengi force-pushed the sengi/refactor-heinous-table-test branch from d67ba5b to fdf6b9e Compare July 28, 2023 23:00
This giant table-driven test was full of branches and was testing a
whole bunch of different behaviours.

- Split it into separate tests that test one thing each.
- Stop doing exact comparisons on floating point numbers.
- Clean up the other few tests in the module.
- Use table-driven tests where appropriate.
@sengi sengi force-pushed the sengi/refactor-heinous-table-test branch from fdf6b9e to a9f47e7 Compare July 28, 2023 23:08
@sengi sengi requested a review from theseanything July 31, 2023 09:15
@sengi sengi marked this pull request as ready for review July 31, 2023 09:15
@sengi
Copy link
Contributor Author

sengi commented Jul 31, 2023

cc @chao-xian

Base automatically changed from sengi/ginkgo-v2 to main July 31, 2023 15:53
@sengi sengi merged commit dcdd2c4 into main Jul 31, 2023
2 checks passed
@sengi sengi deleted the sengi/refactor-heinous-table-test branch July 31, 2023 15:56
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