Skip to content

Commit ba924ab

Browse files
committed
Add test for issue 39710
1 parent e3905af commit ba924ab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/sage/rings/laurent_series_ring_element.pyx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,6 +1081,14 @@ cdef class LaurentSeries(AlgebraElement):
10811081
sage: f = 1/(1-t)
10821082
sage: f.truncate_neg(15)
10831083
t^15 + t^16 + t^17 + t^18 + t^19 + O(t^20)
1084+
1085+
TESTS:
1086+
1087+
Check that :issue:`39710` is fixed::
1088+
1089+
sage: S.<t> = LaurentSeriesRing(QQ)
1090+
sage: (t+t^2).truncate_neg(-1)
1091+
t + t^2
10841092
"""
10851093
return type(self)(self._parent, self.__u >> (n - self.__n), n)
10861094

0 commit comments

Comments
 (0)