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

Tests and fixes for factoring related methods #1596

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

fingolfin
Copy link
Member

  • is_squarefree: zero is never square free, units always are
  • factor and factor_squarefree throw a uniform error if argument is zero
  • add a bunch of tests to verify the fixes above

Fixes #1594

- is_squarefree: zero is never square free, units always are
- factor and factor_squarefree throw a uniform error if argument is zero
- add a bunch of tests to verify the fixes above
Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (bfe0d25) 84.06% compared to head (65eeb64) 85.42%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1596      +/-   ##
==========================================
+ Coverage   84.06%   85.42%   +1.36%     
==========================================
  Files          94       94              
  Lines       36870    42835    +5965     
==========================================
+ Hits        30993    36590    +5597     
- Misses       5877     6245     +368     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@thofma
Copy link
Member

thofma commented Dec 13, 2023

It appears somewhere in Oscar we are factoring the zero polynomial.

@lgoettgens
Copy link
Collaborator

Let's see CI with oscar-system/Oscar.jl#3104 merged.

@lgoettgens lgoettgens closed this Dec 13, 2023
@lgoettgens lgoettgens reopened this Dec 13, 2023
@thofma thofma merged commit 209d6b4 into Nemocas:master Dec 14, 2023
26 of 28 checks passed
@fingolfin fingolfin deleted the mh/squarefree branch December 20, 2023 21:01
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.

Segfault in factor_squarefree for univariate polynomial
3 participants