Ticket #11155: trac_11155-doctest.patch

File trac_11155-doctest.patch, 665 bytes (added by titusn, 8 years ago)
  • sage/symbolic/expression.pyx

    # HG changeset patch
    # User Titus Nicolae <nicolaetitus12@gmail.com>
    # Date 1336767802 -7200
    # Node ID 64a0fd1bc8923dcd0b4f68cd8bc1a27f5ca15f02
    # Parent  43acd2f908489cc2017ecc01c0989e95f00a9cb6
    added doctest for bugfix #11155
    
    diff --git a/sage/symbolic/expression.pyx b/sage/symbolic/expression.pyx
    a b  
    49294929
    49304930            sage: SR(-5).abs(hold=True)
    49314931            abs(-5)
     4932
     4933        TESTS:
     4934
     4935        Check if :trac:`11155` is fixed::
     4936
     4937            sage: abs(pi+i)
     4938            abs(pi + I)
    49324939        """
    49334940        return new_Expression_from_GEx(self._parent, g_abs(self._gobj))
    49344941