Ticket #5759: 5759-doctests.patch

File 5759-doctests.patch, 699 bytes (added by kkilger, 14 years ago)
  • sage/structure/element.pyx

    # HG changeset patch
    # User Kilian Kilger <kilian@nihilnovi.de>
    # Date 1239489295 -7200
    # Node ID 035dfb31cbc5a3ed6ea4ff5565bcd844a568c74e
    # Parent  ed9a9c2f708e6294a9734d908a88ce418dd96e9d
    Added doctests for #5759
    
    diff -r ed9a9c2f708e -r 035dfb31cbc5 sage/structure/element.pyx
    a b  
    13711371            False
    13721372            sage: (x^2+2).divides(x)
    13731373            False
     1374            sage: Zmod(2)(0).divides(Zmod(2)(0))
     1375            True
     1376            sage: Zmod(2)(0).divides(Zmod(2)(1))
     1377            False
    13741378        """
    13751379
    13761380        x2 = self._parent._coerce_c(x)