Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 17fdcc1

Browse files
committed
#12129: add doctest to show issue has been fixed
1 parent b707ce9 commit 17fdcc1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/sage/rings/polynomial/multi_polynomial_libsingular.pyx

+13
Original file line numberDiff line numberDiff line change
@@ -4796,6 +4796,19 @@ cdef class MPolynomial_libsingular(MPolynomial):
47964796
sage: h = f^2
47974797
sage: h.is_squarefree()
47984798
False
4799+
4800+
TESTS::
4801+
4802+
Check that :trac:`12129` is fixed::
4803+
4804+
sage: x, y = QQ['x','y'].gens()
4805+
sage: f = x*y
4806+
sage: f.is_squarefree()
4807+
True
4808+
sage: f = (x+y)*(x+3)
4809+
sage: f.is_squarefree()
4810+
True
4811+
47994812
"""
48004813
# TODO: Use Singular (4.x) intrinsics. (Temporary solution from #17254.)
48014814
return all([ e == 1 for (f, e) in self.factor() ])

0 commit comments

Comments
 (0)