Skip to content

Commit cfc296d

Browse files
committed
Trac #21318: use is_trivial_zero in doctest of _neg_
1 parent 565b493 commit cfc296d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/combinat/recognizable_series.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,8 +1159,8 @@ def _neg_(self):
11591159
sage: -E
11601160
2-regular sequence -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, ...
11611161
sage: Z = E - E
1162-
sage: Z.mu[0], Z.mu[1], Z.left, Z.right
1163-
([], [], (), ())
1162+
sage: Z.is_trivial_zero()
1163+
True
11641164
"""
11651165
P = self.parent()
11661166
return P.element_class(P, self.mu, -self.left, self.right)

0 commit comments

Comments
 (0)