Ticket #12636: 12636_doctest.patch

File 12636_doctest.patch, 592 bytes (added by johanbosman, 9 years ago)
  • sage/rings/integer.pyx

    # HG changeset patch
    # User Johan Bosman <johan.g.bosman@gmail.com>
    # Date 1332267634 -3600
    # Node ID d87dd409d1d820ed09be68c11a40c26216a6f28b
    # Parent  72bba20bc1e88b49a1b59f0467133a5e435ae112
    Trac 12636: add doctest for 0.is_squarefree()
    
    diff --git a/sage/rings/integer.pyx b/sage/rings/integer.pyx
    a b  
    46924692            False
    46934693            sage: Integer(102).is_squarefree()
    46944694            True
     4695            sage: Integer(0).is_squarefree()
     4696            False
    46954697        """
    46964698        return self._pari_().issquarefree()
    46974699