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

Fix tests with singular 4.4.0p3 #38689

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

antonio-rojas
Copy link
Contributor

Fuzz some tests to make then pass with singular>=4.4.0p3, which returns different Gröbner bases in some cases

Copy link

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

@@ -176,7 +176,7 @@
The Groebner basis modulo any product of the prime factors is also non-trivial::
sage: I.change_ring(P.change_ring(IntegerModRing(2 * 7))).groebner_basis()
[x + 9*y + 13*z, y^2 + 3*y, y*z + 7*y + 6, 2*y + 6, z^2 + 3, 2*z + 10]
[x + ..., y^2 + 3*y, y*z + 7*y + 6, 2*y + 6, z^2 + 3, 2*z + 10]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The text above this test says that it's checking that the basis is non-trivial, so we could probably fix this one forever by simply comparing it to the trivial basis and looking for False

@@ -28,7 +28,7 @@ this::
sage: with opt_ctx(red_tail=False, red_sb=False):
....: std(I)[-1]
d^2*e^6 + 8*c^3 + ...
d^2*e^6 +...8*c^3 + ...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of these is supposed to be tail-reduced and the other not... we could do e.g. reduced = std(I)[-1] in the first case and notreduced = std(I)[-1] in the second, with the test then being reduced != notreduced?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants