You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should probably make templates for tests. Not sure how to go about this nicely.
As Max discovered in #2102, we do not test certain cases for some functions (in this example it was the zero polynomial minus a zero integer that is never tested, which did crash).
While all functions are tested with "hardcoded" test code (where some actually need it), for sort of more boilerplaty functions it becomes harder to go get a good overview of the code when everything is "hardcoded". It could also be more prone to errors, such as this case.
Hence, I would strongly suggest we look into templating boilerplate tests.
The text was updated successfully, but these errors were encountered:
Edit: it isn't caught, because of the way the test code is written. The problematic input isn't specifically the zero polynomial, but a polynomial with zero alloc, and this doesn't get caught because the test code reuses variables and never tests sub_fmpz with a freshly allocated variable. Note that we need to do both cases: we've had plenty of bugs for the case where the output variables is not freshly initialized, which the test code didn't cover.
We should probably make templates for tests. Not sure how to go about this nicely.
As Max discovered in #2102, we do not test certain cases for some functions (in this example it was the zero polynomial minus a zero integer that is never tested, which did crash).
While all functions are tested with "hardcoded" test code (where some actually need it), for sort of more boilerplaty functions it becomes harder to go get a good overview of the code when everything is "hardcoded". It could also be more prone to errors, such as this case.
Hence, I would strongly suggest we look into templating boilerplate tests.
The text was updated successfully, but these errors were encountered: