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

Doctest for defining multivariate polynomial ring over InfinityRing #39573

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

pyrusbrawler64
Copy link
Contributor

Fixes #34675

Previously, defining a multivariate polynomial ring over InfinityRing would incorrectly result in an error. As mentioned in the comments under the linked issue, this behaviour was fixed in version 10.3 but a doctest was still needed.

This pull request adds the required doctest, verifying that the statement PolynomialRing(InfinityRing,2,'x') correctly generates a ring instead of throwing an error.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

Copy link

github-actions bot commented Feb 23, 2025

Documentation preview for this PR (built with commit 2732887; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@DaveWitteMorris
Copy link
Member

In line 625, please put double back-ticks around InfinityRing, so it is formatted correctly (i.e., with the correct font) in the documentation: ``InfinityRing``.

@DaveWitteMorris
Copy link
Member

Looks good, thanks. (The CI failure is a doctest that often fails. It is presumably not related to this PR.)

@vbraun vbraun merged commit 1b95945 into sagemath:develop Feb 28, 2025
20 of 22 checks passed
@pyrusbrawler64 pyrusbrawler64 deleted the 34675_infinity_ring branch March 9, 2025 19:28
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.

TypeError: The base ring The Infinity Ring is not a commutative ring
3 participants