-
Notifications
You must be signed in to change notification settings - Fork 161
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
Clarify, fix and test semantics of Quotient(R,a,b) #3612
Clarify, fix and test semantics of Quotient(R,a,b) #3612
Conversation
tst/testinstall/opers/Quotient.tst
Outdated
<monoid>[t] | ||
gap> Quotient(2*t, t); | ||
ZmodnZObj(2,6) | ||
gap> #Quotient(t, 2*t); # FIXME: should return fail |
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.
Do you intend to fix this FIXME
in this PR?
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.
@wilfwilson Nope, that would require substantial changes to the polynomial code, which isn't something I plan to look at any time soon.
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.
I tried to clarify the comment to make it clearer what is going on. Also tried to fix the test failure.
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.
Thanks
6676af2
to
a7f3eb7
Compare
Codecov Report
@@ Coverage Diff @@
## master #3612 +/- ##
=========================================
Coverage ? 80.91%
=========================================
Files ? 644
Lines ? 317116
Branches ? 0
=========================================
Hits ? 256607
Misses ? 60509
Partials ? 0
|
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.
LGTM, although there's still a single thing failing on Travis (hopefully straightforward to fix).
This improves the documentation of Quotient to make it sensible for non-commutative rings, and rings with zero divisors; it also fixes some methods for Quotient which violated the documentation of Quotient (before and after my changes to it). In particular Quotient(R, x, Zero(R)) should return fail, not run into an error. Also add some tests for various Quotient methods. It turns out that those for polynomials still are broken, which should be fixed in the future.
a7f3eb7
to
987f6ad
Compare
This improves the documentation of
Quotient
to make it sensible for non-commutative rings, and rings with zero divisors; it also fixes some methods forQuotient
which violated the documentation ofQuotient
(before and after my changes to it).In particular
Quotient(R, x, Zero(R))
should return fail, not run into an error.Also add some tests for various
Quotient
methods. It turns out that those forpolynomials still are broken, which should be fixed in the future.