Skip to content

Commit a0250df

Browse files
author
Release Manager
committed
gh-35003: add doctest for #16031 Closes #16031. URL: #35003 Reported by: Marc Mezzarobba Reviewer(s): Lorenz Panny
2 parents 67f8e43 + 73b4146 commit a0250df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/sage/symbolic/expression.pyx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3464,6 +3464,12 @@ cdef class Expression(Expression_abc):
34643464
34653465
sage: bool(x^2 + 2*x + 1 != (x + 1)^2)
34663466
False
3467+
3468+
Check that :trac:`16031` is fixed::
3469+
3470+
sage: expr = reduce(lambda u, v: 1/u -v, [1/pi] + list(continued_fraction(pi)[:20]))
3471+
sage: expr.is_zero()
3472+
False
34673473
"""
34683474
if self.is_relational():
34693475
# constants are wrappers around Sage objects, compare directly

0 commit comments

Comments
 (0)