Skip to content

Commit

Permalink
change doctest so that we check for Primes being != to x^2+x (#5966)
Browse files Browse the repository at this point in the history
  • Loading branch information
mabshoff committed May 4, 2009
1 parent 6cde516 commit 80e32a6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/sage/sets/primes.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,13 @@ def __cmp__(self, right):
0
sage: P == R
True
sage: P>R
sage: P != R
False
sage: Q=[1,2,3]
sage: P.__cmp__(Q)
-1
sage: Q>P
sage: Q != P # indirect doctest
True
sage: P>Q
False
sage: P>x^2+x
sage: R.<x>=ZZ[]
sage: P!=x^2+x
True
"""
if isinstance(right, Primes_class):
Expand Down

0 comments on commit 80e32a6

Please sign in to comment.