-
Notifications
You must be signed in to change notification settings - Fork 64
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
Is_unit and is_nilpotent (with tests) #1933
Conversation
I don't think we can rely on any order when iterating over the coefficients. The only guarantee that we have is that
|
I notice that there are tests of
Should I disable these tests? I have not yet checked which code would be called... |
Right now I don't know how to write a test which will cover the lines which the codecov bot complained about. I don't think it is important to cover them. |
julia> S, x = polynomial_ring(QQ, :x); | ||
|
||
julia> is_nilpotent(30*x), is_nilpotent(30+90*x), is_nilpotent(S(15)) | ||
(true, true, false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JohnAAbbott seems you and the code disagree as to what the correct output is?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thepolynomial_ring should be over the ring created before, not over QQ. Fixed now
Fixes #11